From a797d571361fae55e2b06f1393990e7f07629f9d Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Sun, 2 Mar 2025 05:31:42 +0000 Subject: [PATCH] add healthcheck --- packages/appview/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/appview/src/index.ts b/packages/appview/src/index.ts index 4990d8e..2c09993 100644 --- a/packages/appview/src/index.ts +++ b/packages/appview/src/index.ts @@ -139,6 +139,11 @@ export class Server { // Serve static files app.use(express.static(frontendPath)) + // Heathcheck + app.get('/health', (req, res) => { + res.status(200).json({ status: 'ok' }) + }) + // For any other requests, send the index.html file app.get('*', (req, res) => { // Only handle non-API paths -- 2.51.2