Added the server route to the server index.js

This commit is contained in:
Mathias Wagner 2023-06-03 01:33:46 +02:00
parent 7dc53feb96
commit 47f8784906
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -25,5 +25,7 @@ app.use(cors());
// Register routes
app.get("/", (req, res) => res.json({status: "ok"}));
app.use("/server", require("./routes/server"));
// Start the server
server.listen(port, () => console.log(`Server listening on port ${port}`));