[object Object]

← back to AsSeenInMovies

api/health: include uptime_s for ops dashboards

9dd8ccaa3f454b96e25f3ee491c6d135ebc7a5be · 2026-05-13 09:55:58 -0700 · SteveStudio2

Files touched

Diff

commit 9dd8ccaa3f454b96e25f3ee491c6d135ebc7a5be
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 09:55:58 2026 -0700

    api/health: include uptime_s for ops dashboards
---
 server.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server.js b/server.js
index 42f4449..e6e4d23 100644
--- a/server.js
+++ b/server.js
@@ -127,6 +127,7 @@ app.get('/api/health', async (_req, res) => {
         credits: Number(stats.credits_total)  || 0,
         spotted: Number(stats.spotted_total)  || 0,
       } : null,
+      uptime_s: Math.floor(process.uptime()),
       as_of: stats && _homeCache.at ? new Date(_homeCache.at).toISOString() : null,
     });
   } catch (e) {

← 0f94cb4 sitemap.txt: emit Last-Modified header for conditional GET (  ·  back to AsSeenInMovies  ·  smoke: uptime_s assertion on /api/health b8ab370 →