feat: add GET /log-demo route showing structured logging to Kibana
All checks were successful
/ checks (push) Successful in 36s
/ deploy (push) Successful in 1m22s

This commit is contained in:
nholtware 2026-11-05 10:17:10 -06:00
parent 2f67c1a07d
commit e770451e08
3 changed files with 42 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import type { Config } from "./lib/config.js";
import type { Db } from "./lib/db.js";
import type { Cache } from "./lib/redis.js";
import { healthRouter } from "./routes/health.js";
import { logDemoRouter } from "./routes/log-demo.js";
import { rootRouter } from "./routes/root.js";
export interface Deps {
@ -43,6 +44,7 @@ export function createApp({ config, logger, db, cache }: Deps) {
app.use(healthRouter({ db, cache }));
app.use(rootRouter({ config, db, cache }));
app.use(logDemoRouter());
// Express identifies error handlers by arity; keep all four args.
// eslint-disable-next-line @typescript-eslint/no-unused-vars