From c38da0d3dd19218e91db32ecf46261183c8a9c44 Mon Sep 17 00:00:00 2001 From: dw-0 Date: Thu, 24 Oct 2024 20:56:57 +0200 Subject: [PATCH] fix: re-implement getHealth method Signed-off-by: Dominik Willner --- apps/api/src/app/health/health.controller.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/api/src/app/health/health.controller.ts b/apps/api/src/app/health/health.controller.ts index 40473d3c6..717988ebc 100644 --- a/apps/api/src/app/health/health.controller.ts +++ b/apps/api/src/app/health/health.controller.ts @@ -3,7 +3,9 @@ import { TransformDataSourceInRequestInterceptor } from '@ghostfolio/api/interce import { Controller, Get, + HttpCode, HttpException, + HttpStatus, Param, UseInterceptors } from '@nestjs/common'; @@ -16,6 +18,12 @@ import { HealthService } from './health.service'; export class HealthController { public constructor(private readonly healthService: HealthService) {} + @Get() + @HttpCode(HttpStatus.OK) + public getHealth() { + return { status: StatusCodes.OK }; + } + @Get('data-enhancer/:name') public async getHealthOfDataEnhancer(@Param('name') name: string) { const hasResponse =