12 lines
268 B
TypeScript
12 lines
268 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { ConfigService } from '@nestjs/config';
|
|
|
|
@Injectable()
|
|
export class HomeService {
|
|
constructor(private configService: ConfigService) {}
|
|
|
|
appInfo() {
|
|
return { name: this.configService.get('app.name') };
|
|
}
|
|
}
|