forked from Ynov/ptitspas-ynov-back
global prefix added
This commit is contained in:
@@ -8,6 +8,7 @@ async function bootstrap() {
|
||||
const configService = app.get(ConfigService);
|
||||
|
||||
const port = configService.get<number>('app.port', 3000);
|
||||
app.setGlobalPrefix('api/v1');
|
||||
await app.listen(port);
|
||||
console.log(`✅ P'titsPas API is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user