Files
api_directorio/src/app.controller.ts
T
2024-06-05 22:36:29 -06:00

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();
}
}