Skip to content

Commit

Permalink
feat(nestjs): /api/healthcheck endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbolikowski committed Dec 5, 2024
1 parent ca52032 commit 75aa570
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/nestjs-api/src/app/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Controller, Get, UseGuards } from '@nestjs/common'
import { CurrentUser } from '../auth/current-user.decorator'
import { CurrentUserInfo } from '../auth/current-user.interface'
import { JwtAuthGuard } from '../auth/jwt-auth.guard'

import { AppService } from './app.service'

@Controller()
Expand All @@ -14,4 +13,9 @@ export class AppController {
getData(@CurrentUser() user: CurrentUserInfo) {
return this.appService.getData()
}

@Get('healthcheck')
healthCheck() {
return { status: 'ok' }
}
}

0 comments on commit 75aa570

Please sign in to comment.