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

Function handleBoardGet

design/src/daemon.ts:358–366  ·  view source on GitHub ↗
(board: Board)

Source from the content-addressed store, hash-verified

356}
357
358function handleBoardGet(board: Board): Response {
359 board.lastTouched = Date.now();
360 // No __GSTACK_SERVER_URL injection — board JS uses relative URLs that
361 // resolve against /boards/<id>/ (the trailing slash is load-bearing here;
362 // the 301 from the bare /boards/<id> form ensures it).
363 return new Response(board.htmlContent, {
364 headers: { "Content-Type": "text/html; charset=utf-8" },
365 });
366}
367
368function handleBoardProgress(board: Board): Response {
369 // NOT meaningful activity — bare progress polling shouldn't keep the

Callers 1

fetchHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected