15 lines
321 B
TypeScript
15 lines
321 B
TypeScript
import { Inject, Injectable } from '@nestjs/common';
|
|
import { ConfigService } from '@nestjs/config';
|
|
|
|
@Injectable()
|
|
export class AppService {
|
|
@Inject(ConfigService)
|
|
private configService: ConfigService;
|
|
|
|
getHello(): string {
|
|
console.log(this.configService.get('server.port'));
|
|
|
|
return 'Hello World!';
|
|
}
|
|
}
|