MCPcopy
hub / github.com/garrytan/gstack / handleHealth

Function handleHealth

design/src/daemon.ts:234–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232// ─── Handlers ─────────────────────────────────────────────────────
233
234function handleHealth(): Response {
235 return Response.json({
236 ok: true,
237 version: VERSION,
238 uptime: Math.floor((Date.now() - startTime) / 1000),
239 boards: boards.size,
240 activeBoards: nonDoneCount(),
241 });
242}
243
244function handleIndex(): Response {
245 const sorted = [...boards.values()].sort((a, b) => b.publishedAt - a.publishedAt);

Callers 1

fetchHandlerFunction · 0.85

Calls 1

nonDoneCountFunction · 0.85

Tested by

no test coverage detected