feat: Implement secure static file serving with path traversal protection and XSS prevention for template titles.

This commit is contained in:
syntaxbullet
2026-01-07 12:51:08 +01:00
parent 2a1c4e65ae
commit 894cad91a8
7 changed files with 98 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ import { router } from "./router";
import type { Server } from "bun";
export class WebServer {
private static server: Server<any> | null = null;
private static server: Server<unknown> | null = null;
public static start() {
this.server = Bun.serve({