Skip to content

Commit

Permalink
feat: ✨ healthcheck endpoint 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jpham005 committed Oct 18, 2023
1 parent 2f33e56 commit cd6d941
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { JWT_CONFIG } from './config/jwt';
import { RUNTIME_CONFIG } from './config/runtime';
import { MongooseRootModule } from './database/mongoose/database.mongoose.module';
import { DateWrapper } from './dateWrapper/dateWrapper';
import { HealthCheckModule } from './healthcheck/healthcheck.module';
import { LambdaModule } from './lambda/lambda.module';
import { LoginModule } from './login/login.module';
import { CalculatorModule } from './page/calculator/calculator.module';
Expand Down Expand Up @@ -90,6 +91,7 @@ export class AppRootModule {}
SettingModule,
CalculatorModule,
LambdaModule,
HealthCheckModule,
CacheDecoratorOnReturnModule,
],
providers: [StatAuthGuard, ComplexityPlugin],
Expand Down
8 changes: 8 additions & 0 deletions app/src/healthcheck/healthcheck.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Controller, Get, HttpCode, HttpStatus } from '@nestjs/common';

@Controller('healthcheck')
export class HealthCheckController {
@Get()
@HttpCode(HttpStatus.OK)
healthCheck() {}
}
8 changes: 8 additions & 0 deletions app/src/healthcheck/healthcheck.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Module } from '@nestjs/common';
import { HealthCheckController } from './healthcheck.controller';

@Module({
controllers: [HealthCheckController],
})
// eslint-disable-next-line
export class HealthCheckModule {}

0 comments on commit cd6d941

Please sign in to comment.