From c3f13bf612c56007c262f2dd67d9ea4b4395ad87 Mon Sep 17 00:00:00 2001 From: Albert Byiringiro <88356155+albert-byiringiro@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:59:03 +0200 Subject: [PATCH] added health controller to the server --- server/src/health/health.controller.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/src/health/health.controller.ts diff --git a/server/src/health/health.controller.ts b/server/src/health/health.controller.ts new file mode 100644 index 0000000..f23d213 --- /dev/null +++ b/server/src/health/health.controller.ts @@ -0,0 +1,9 @@ +import { Controller, Get } from "@nestjs/common"; + +@Controller('health') +export class HealthController { + @Get() + check() { + return { status: 'ok' }; + } +} \ No newline at end of file