diff --git a/backend/src/opsce/health/healthController.ts b/backend/src/opsce/health/healthController.ts new file mode 100644 index 00000000..ab5b2c22 --- /dev/null +++ b/backend/src/opsce/health/healthController.ts @@ -0,0 +1,11 @@ + + + +export class healthController { + constructor(private readonly healthService: HealthService) {} + + @Get() + getHealth(): string { + return this.healthService.getHealthStatus(); + } +} \ No newline at end of file diff --git a/backend/src/opsce/health/healthModule.ts b/backend/src/opsce/health/healthModule.ts new file mode 100644 index 00000000..1e5b68e2 --- /dev/null +++ b/backend/src/opsce/health/healthModule.ts @@ -0,0 +1,11 @@ +import { Module } from '@nestjs/common'; +import { TypeOrmModule } from '@nestjs/typeorm'; +import { AuditLog } from './entities/audit-log.entity'; +import { AuditService } from './audit.service'; + +@Module({ + imports: [TypeOrmModule.forFeature([])], + providers: [HealthService], + exports: [HealthService, TypeOrmModule], +}) +export class HealthModule {} diff --git a/backend/src/opsce/health/healthSerivce.ts b/backend/src/opsce/health/healthSerivce.ts new file mode 100644 index 00000000..19921615 --- /dev/null +++ b/backend/src/opsce/health/healthSerivce.ts @@ -0,0 +1,8 @@ + + +@Injectable() +export class HealthService { + getHealthStatus(): string { + return 'OK'; + } +} \ No newline at end of file