This commit is contained in:
kolaflash
2026-02-05 22:53:49 +01:00
parent 20eeadc4b6
commit fcc0f90198
+3 -2
View File
@@ -17,11 +17,12 @@ function buildBrowserIndex(dir: string): string[] {
});
}
function getScenes(req: IncomingMessage, res: ServerResponse) {
function getScenes(_req: IncomingMessage, res: ServerResponse) {
const sceneData = buildBrowserIndex(`${root}/game/scenes`);
const json = JSON.stringify(sceneData);
res.writeHead(200, { "Content-Type": "application/json" });
res.end(JSON.stringify(sceneData));
res.end(json);
}
function get(req: IncomingMessage, res: ServerResponse): void {