forked from syntaxbullet/AuroraBot-discord
feat: Implement secure static file serving with path traversal protection and XSS prevention for template titles.
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user