import { Injectable } from '@nestjs/common' ; import { ConfigService } from '../config/config.service' ; @ Injectable ( ) export class AppService { constructor ( private config ) { } root ( ) { return this . config . get ( 'API_URL' ) ; } }