Got Authorization flow working (Untested)

This commit is contained in:
2026-01-25 16:53:18 -06:00
parent d96f18e6cf
commit 8ee7dc15e5
8 changed files with 174 additions and 21 deletions
+12 -4
View File
@@ -1,7 +1,15 @@
import app from "./api/server";
import { PORT } from "./constants";
import { engine, PORT } from "./constants";
Bun.serve({
port: PORT,
fetch: app.fetch
});
port: PORT,
fetch: (req, server) => {
const url = new URL(req.url);
if (url.pathname.startsWith("/socket.io/")) {
return engine.handleRequest(req, server as any);
}
return app.fetch(req, server);
},
});