feat: add admin module

This commit is contained in:
2026-06-01 14:45:01 +03:30
parent 7dda2564a8
commit 967b96184a
30 changed files with 335 additions and 30 deletions
+8
View File
@@ -2,6 +2,7 @@ import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { I18nValidationExceptionFilter, I18nValidationPipe } from 'nestjs-i18n';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { ResponseInterceptor } from './common/interceptors/response.interceptor';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
@@ -28,6 +29,13 @@ async function bootstrap() {
}),
);
app.useGlobalInterceptors(new ResponseInterceptor());
app.enableCors({
origin: ['http://localhost:5173'],
credentials: true,
});
const config = new DocumentBuilder()
.setTitle('Borna API')
.setDescription('Borna API Documentation')