added arkjet :D

This commit is contained in:
2026-02-05 21:46:51 -05:00
parent 9f5ec4fff2
commit 07b3f0d741
7 changed files with 430 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import http from "http";
// routes
import { matchRouter } from "./routes/matches.route.js";
import { attachWebsocketServer } from "./ws/server.js";
import { securityMiddleware } from "./utils/arkjet.js";
const PORT = process.env.PORT || 8081;
const HOST = process.env.HOST || "0.0.0.0";
@@ -18,6 +19,9 @@ app.get("/", (_, res) => {
res.send("Hello from express server!");
});
// middleware
app.use(securityMiddleware());
app.use("/matches", matchRouter);
const { broadcastMatchCreated } = attachWebsocketServer(server);