diff --git a/src/server/routes.ts b/src/server/routes.ts index c2f6878..a08696c 100644 --- a/src/server/routes.ts +++ b/src/server/routes.ts @@ -171,6 +171,11 @@ export async function registerRoutes(app: FastifyInstance, cwd: string): Promise // Static, self-contained Trello-like board. Polls /tasks, /handoffs and // /decisions on the same origin; no build step, no deps. Cached once — the // markup is constant, only the data it fetches changes. + // Wurzel-URL auf das Board leiten. Ohne das antwortet http://:3377/ + // mit 404 — wer "laeuft der Hub?" pruefen will, oeffnet aber genau diese + // Adresse und haelt den Hub faelschlich fuer tot (real passiert). + app.get('/', async (_request, reply) => reply.redirect('/board', 302)); + const boardHtml = renderBoardHtml(loadConfig(cwd).projectName); app.get('/board', async (_request, reply) => reply.type('text/html; charset=utf-8').send(boardHtml));