mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-30 02:39:05 +08:00
moved the test route to the root route
This commit is contained in:
parent
59dbb95569
commit
91bd2368cd
1 changed files with 4 additions and 4 deletions
|
|
@ -35,6 +35,10 @@ if (process.env.API_PATH_OVERRIDE) {
|
|||
startingPath = "/" + process.env.API_PATH_OVERRIDE;
|
||||
}
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.status(204).json({ message: "OK" });
|
||||
});
|
||||
|
||||
const userRouter = require("./api/routes/user");
|
||||
app.use(startingPath + "/user", userRouter);
|
||||
const configRouter = require("./api/routes/config");
|
||||
|
|
@ -91,10 +95,6 @@ app.use(function (e, req, res, next) {
|
|||
return res.status(monkeyError.status || 500).json(monkeyError);
|
||||
});
|
||||
|
||||
app.get("/test", (req, res) => {
|
||||
res.send("Hello World!");
|
||||
});
|
||||
|
||||
const LeaderboardsDAO = require("./dao/leaderboards");
|
||||
|
||||
console.log("Starting server...");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue