This commit is contained in:
Debian
2026-03-30 14:03:44 +00:00
parent bb8497d33d
commit 8fe8d74644
7 changed files with 153 additions and 2 deletions
+11
View File
@@ -3,6 +3,7 @@ import { loginAdmin, logoutAdmin, requireAdminSession, getSessionFromRequest, se
import { cleanupDatabase } from "./lib/db";
import { errorResponse, jsonResponse, emptyResponse, optionsResponse, parseJson, assertAllowedOrigin } from "./lib/http";
import { config } from "./lib/config";
import { serveFrontendBuild } from "./lib/frontend";
import {
createUserSchema,
loginSchema,
@@ -156,6 +157,16 @@ app.post(
})
);
app.get(
"/",
route(async ({ request }) => serveFrontendBuild(request))
);
app.get(
"/*",
route(async ({ request }) => serveFrontendBuild(request))
);
app.listen({
hostname: config.host,
port: config.port