mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
Merge pull request #939 from bigcapitalhq/fix/ahmedbouhuolia/docker-healthcheck-endpoint
fix(server): fix Docker healthcheck endpoint
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import { Controller, Get, Post } from '@nestjs/common';
|
||||
import { Controller, Get, HttpCode } from '@nestjs/common';
|
||||
import { PublicRoute } from '@/modules/Auth/guards/jwt.guard';
|
||||
|
||||
@Controller('/system_db')
|
||||
@Controller('system_db')
|
||||
@PublicRoute()
|
||||
export class SystemDatabaseController {
|
||||
constructor() {}
|
||||
|
||||
@Post()
|
||||
@Get()
|
||||
ping(){
|
||||
|
||||
@HttpCode(200)
|
||||
ping() {
|
||||
return { status: 'ok' };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
SystemKnexConnectionConfigure,
|
||||
} from './SystemDB.constants';
|
||||
import { knexSnakeCaseMappers } from 'objection';
|
||||
import { SystemDatabaseController } from './SystemDB.controller';
|
||||
|
||||
const providers = [
|
||||
{
|
||||
@@ -42,6 +43,7 @@ const providers = [
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
controllers: [SystemDatabaseController],
|
||||
providers: [...providers],
|
||||
exports: [...providers],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user