no 405
This commit is contained in:
parent
ff8b626b8a
commit
da1b0ab58c
6
qonq.js
6
qonq.js
@ -77,9 +77,3 @@ app.get(['/', '/:code/', '/:code/*'], function(req, res, next){
|
||||
}
|
||||
});
|
||||
}, express.static(FILES_DIR), serveIndex(FILES_DIR, {icons: true}));
|
||||
|
||||
|
||||
app.use((req, res) => {
|
||||
if (req.method == "GET") res.status(404).send("This resource does not exist.");
|
||||
else res.sendStatus(405);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user