mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
test endpoint
This commit is contained in:
parent
7e006cfcd4
commit
93998e2e49
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ app.use(function (e, req, res, next) {
|
|||
return res.status(e.status || 500).json(monkeyError);
|
||||
});
|
||||
|
||||
app.get("/test", (req, res) => {
|
||||
res.send("Hello World!");
|
||||
});
|
||||
|
||||
app.listen(PORT, async () => {
|
||||
console.log(`listening on port ${PORT}`);
|
||||
await connectDB();
|
||||
|
|
Loading…
Reference in a new issue