From 92ab3c8715108082c0126c01a2e5a6cec0453b77 Mon Sep 17 00:00:00 2001 From: Jonas Zipprick Date: Fri, 17 Jul 2026 12:02:55 +0200 Subject: [PATCH] fix: Use same format for health as backend --- frontend/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/index.js b/frontend/index.js index 91abe8a..a0f1952 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -13,8 +13,7 @@ app.get('/', (req, res) => { }); app.get('/health', (req, res) => { - res.setHeader('Content-Type', 'application/json'); - res.end(JSON.stringify({ state: 'healthy' })); + res.json({ status: 'OK', timestamp: new Date().toISOString() }); }); // Catch-all route for shortened URLs - redirect to API