added arkjet :D
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user