From 1233be85e97bcc8b3174bde06f3ddcded0e0c551 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 26 Mar 2018 18:46:08 -0600 Subject: [PATCH] Add a health endpoint For monitoring --- src/api/dimension/DimensionHealthService.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/api/dimension/DimensionHealthService.ts diff --git a/src/api/dimension/DimensionHealthService.ts b/src/api/dimension/DimensionHealthService.ts new file mode 100644 index 0000000..154600c --- /dev/null +++ b/src/api/dimension/DimensionHealthService.ts @@ -0,0 +1,11 @@ +import { GET, Path } from "typescript-rest"; + +@Path("/api/v1/dimension/health") +export class DimensionHealthService { + + @GET + @Path("heartbeat") + public async heartbeat(): Promise { + return {}; // 200 OK + } +} \ No newline at end of file