Initial commit

This commit is contained in:
nholtware 2026-11-05 12:39:53 -06:00
commit a0c3aa640c
36 changed files with 7676 additions and 0 deletions

14
src/routes/admin.ts Normal file
View file

@ -0,0 +1,14 @@
import { Router } from "express";
import type { RuntimeConfig } from "../lib/runtime-config.js";
// Unauthenticated by design (LAN homelab). Runtime config holds no secrets
// by contract; see src/runtime-config.schema.ts.
export function adminRouter(deps: { runtimeConfig: RuntimeConfig }): Router {
const router = Router();
router.get("/admin/runtime-config", (_req, res) => {
res.json(deps.runtimeConfig.snapshot());
});
return router;
}