import 'reflect-metadata';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import * as cookieParser from 'cookie-parser';
import helmet from 'helmet';

async function bootstrap() {
  const app = await NestFactory.create(AppModule, { cors: true });
  app.use(helmet());
  app.use(cookieParser());
  app.setGlobalPrefix('api/v1');
  await app.listen(4000);
  console.log('API listening on http://0.0.0.0:4000/api/v1');
}
bootstrap();
