Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions backend/src/opsce/health/healthController.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@



export class healthController {
constructor(private readonly healthService: HealthService) {}

@Get()
getHealth(): string {
return this.healthService.getHealthStatus();
}
}
11 changes: 11 additions & 0 deletions backend/src/opsce/health/healthModule.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuditLog } from './entities/audit-log.entity';

Check failure on line 3 in backend/src/opsce/health/healthModule.ts

View workflow job for this annotation

GitHub Actions / Backend (NestJS)

'AuditLog' is defined but never used
import { AuditService } from './audit.service';

Check failure on line 4 in backend/src/opsce/health/healthModule.ts

View workflow job for this annotation

GitHub Actions / Backend (NestJS)

'AuditService' is defined but never used

@Module({
imports: [TypeOrmModule.forFeature([])],
providers: [HealthService],
exports: [HealthService, TypeOrmModule],
})
export class HealthModule {}
8 changes: 8 additions & 0 deletions backend/src/opsce/health/healthSerivce.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


@Injectable()
export class HealthService {
getHealthStatus(): string {
return 'OK';
}
}
Loading