17 lines
438 B
TypeScript
17 lines
438 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { AppService } from './app.service';
|
|
import { ConfigService } from '@nestjs/config';
|
|
|
|
@Controller()
|
|
export class AppController {
|
|
constructor(private readonly appService: AppService,
|
|
private configservice: ConfigService
|
|
) {}
|
|
|
|
@Get()
|
|
getHello(): string {
|
|
console.log("Todo bien", this.configservice.get("DATABASE_NAME"))
|
|
return this.appService.getHello();
|
|
}
|
|
}
|