INNER CODE UNIT · TypeScript
AppService
msanvarov/nest-rest-mongo-boilerplate · src/modules/app/app.service.ts:7
export class AppService {
constructor(
private readonly config: ConfigService,
@Inject(WINSTON_MODULE_PROVIDER) private readonly logger: Logger,
) {}
root(): string {
const appURL = this.config.get<string>('APP_URL') ?? '';
this.logger.info(`Logging the APP_URL -> ${appURL}`);
return appURL;
}
}