13 lines
265 B
TypeScript
Raw Normal View History

2021-09-06 17:10:06 +02:00
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {
cors: true,
});
app.setGlobalPrefix('api/v2');
await app.listen(8080);
2021-09-06 17:10:06 +02:00
}
bootstrap();