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