nest proto

This commit is contained in:
Den Piligrim
2026-02-01 12:50:45 +03:00
parent 9dee9bc216
commit ff7b1646b8
+4 -1
View File
@@ -1,10 +1,13 @@
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { AppModule } from './app.module';
import { AuthService } from './auth/auth.service';
import { RequestMethod } from '@nestjs/common';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.set('trust proxy', 1);
const authService = app.get(AuthService);
await authService.seedAdmin();