services refactor

This commit is contained in:
2025-12-17 23:37:51 +01:00
parent 1eaa338e86
commit f7a56a92ce
94 changed files with 1894 additions and 3194 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ import { join } from 'path';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create(AppModule, process.env.GENERATE_OPENAPI ? { logger: false } : undefined);
// Swagger/OpenAPI configuration
const config = new DocumentBuilder()
@@ -35,6 +35,8 @@ async function bootstrap() {
const outputPath = join(__dirname, '../openapi.json');
writeFileSync(outputPath, JSON.stringify(document, null, 2));
console.log(`✅ OpenAPI spec generated at: ${outputPath}`);
await app.close();
process.exit(0);
}
await app.listen(3000);