mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-03 02:28:06 +00:00
Lobby urls! Server will server index.html and act as a SPA.
This commit is contained in:
@@ -130,6 +130,11 @@ app.get("/private_lobby/:id", (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
app.get("*", function (req, res) {
|
||||
// SPA routing
|
||||
res.sendFile(path.join(__dirname, "../../out/index.html"));
|
||||
});
|
||||
|
||||
wss.on("connection", (ws, req) => {
|
||||
ws.on("message", (message: string) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user