changed the url to /feed/ and reject everything else
This commit is contained in:
parent
22cee0b4fa
commit
0325a7cdd3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user