299ca293a8
* feat: wip * fix: issues * feat: clean controllers and services * fix: test * Fix auth --------- Co-authored-by: Charles Bochet <charles@twenty.com>
15 lines
357 B
TypeScript
15 lines
357 B
TypeScript
import { NestFactory } from '@nestjs/core';
|
|
import { ValidationPipe } from '@nestjs/common';
|
|
import { AppModule } from './app.module';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule, { cors: true });
|
|
|
|
// Apply validation pipes globally
|
|
app.useGlobalPipes(new ValidationPipe());
|
|
|
|
await app.listen(3000);
|
|
}
|
|
|
|
bootstrap();
|