Initial commit
CI / Сборка (push) Canceled after 0s
CI / Деплой на стейджинг (push) Canceled after 0s
CI / Проверка кода (push) Canceled after 0s
CI / Сборка (pull_request) Successful in 1m33s
Стенд master
CI / Деплой на стейджинг (pull_request) Successful in 8s
CI / Проверка кода (pull_request) Successful in 1m32s

This commit is contained in:
arswarog committed 2026-11-10 17:22:12 +03:00
commit 1420aad1ae
92 files changed
+19114

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
getData() {
return this.appService.getData();
}
}
+19
View File
@@ -0,0 +1,19 @@
import { Module, OnModuleDestroy } from '@nestjs/common';
import { DatabaseModule } from '../database/database.module';
import { HealthModule } from '../health/health.module';
import { LocalLoggerModule, Logger } from '../logger';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
imports: [LocalLoggerModule.forRoot(), DatabaseModule, HealthModule],
controllers: [AppController],
providers: [AppService],
})
export class AppModule implements OnModuleDestroy {
onModuleDestroy() {
new Logger('AppModule').warn('Backend is shutting down');
}
}
+8
View File
@@ -0,0 +1,8 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
getData(): { message: string } {
return { message: 'Hello API' };
}
}