2024-06-05 00:23:18 -06:00
|
|
|
import { Controller, Get } from '@nestjs/common';
|
|
|
|
|
import { AppService } from './app.service';
|
2024-06-05 22:36:29 -06:00
|
|
|
import { ConfigService } from '@nestjs/config';
|
2024-06-05 00:23:18 -06:00
|
|
|
|
|
|
|
|
@Controller()
|
|
|
|
|
export class AppController {
|
2024-06-05 22:36:29 -06:00
|
|
|
constructor(private readonly appService: AppService,
|
|
|
|
|
private configservice: ConfigService
|
|
|
|
|
) {}
|
2024-06-05 00:23:18 -06:00
|
|
|
|
|
|
|
|
@Get()
|
|
|
|
|
getHello(): string {
|
2024-06-05 22:36:29 -06:00
|
|
|
console.log("Todo bien", this.configservice.get("DATABASE_NAME"))
|
2024-06-05 00:23:18 -06:00
|
|
|
return this.appService.getHello();
|
|
|
|
|
}
|
|
|
|
|
}
|