Better frontend kind of

This commit is contained in:
Theo Browne
2026-02-19 23:28:03 -08:00
parent bca390ae75
commit ce1ef83926
11 changed files with 1241 additions and 361 deletions

View File

@@ -47,6 +47,11 @@ const server = Bun.serve({
},
fetch(req, server) {
const url = new URL(req.url);
if (url.pathname.startsWith("/assets/")) {
const path = `./public${url.pathname}`;
const file = Bun.file(path);
return new Response(file);
}
if (url.pathname === "/ws") {
const upgraded = server.upgrade(req);
if (!upgraded) {