Conexiondb

This commit is contained in:
TioSam77
2024-06-05 22:36:29 -06:00
parent 0af1c11144
commit b030a4f321
8 changed files with 597 additions and 80 deletions
+5 -1
View File
@@ -1,12 +1,16 @@
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) {}
constructor(private readonly appService: AppService,
private configservice: ConfigService
) {}
@Get()
getHello(): string {
console.log("Todo bien", this.configservice.get("DATABASE_NAME"))
return this.appService.getHello();
}
}