changed the url to /feed/ and reject everything else

This commit is contained in:
Martin Donnelly 2018-06-13 22:45:50 +01:00
parent 22cee0b4fa
commit 0325a7cdd3

View File

@ -185,7 +185,7 @@ app.get('/feed/:encoded_id', getUrl);
// Final middleware is our catch-all error handler
app.get('*', function(req, res, next) {
log
log.info(req);
const err = new Error(`${req.ip} tried to access /Forbidden`);
// Sets error message, includes the requester's ip address!
err.statusCode = 403;