Browse Source

fix: re-implement getHealth method

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
pull/3979/head
dw-0 10 months ago
parent
commit
c38da0d3dd
  1. 8
      apps/api/src/app/health/health.controller.ts

8
apps/api/src/app/health/health.controller.ts

@ -3,7 +3,9 @@ import { TransformDataSourceInRequestInterceptor } from '@ghostfolio/api/interce
import { import {
Controller, Controller,
Get, Get,
HttpCode,
HttpException, HttpException,
HttpStatus,
Param, Param,
UseInterceptors UseInterceptors
} from '@nestjs/common'; } from '@nestjs/common';
@ -16,6 +18,12 @@ import { HealthService } from './health.service';
export class HealthController { export class HealthController {
public constructor(private readonly healthService: HealthService) {} public constructor(private readonly healthService: HealthService) {}
@Get()
@HttpCode(HttpStatus.OK)
public getHealth() {
return { status: StatusCodes.OK };
}
@Get('data-enhancer/:name') @Get('data-enhancer/:name')
public async getHealthOfDataEnhancer(@Param('name') name: string) { public async getHealthOfDataEnhancer(@Param('name') name: string) {
const hasResponse = const hasResponse =

Loading…
Cancel
Save