added no-cache endpoint

This commit is contained in:
Henry Oswald 2017-12-15 13:38:34 +00:00
parent 4955fb373b
commit 7aaf08da48

View file

@ -324,6 +324,10 @@ module.exports = class Router
headers: req.headers
})
webRouter.get "/no-cache", (req, res, next)->
res.header("Cache-Control", "max-age=0")
res.sendStatus(404)
webRouter.get '/oops-express', (req, res, next) -> next(new Error("Test error"))
webRouter.get '/oops-internal', (req, res, next) -> throw new Error("Test error")
webRouter.get '/oops-mongo', (req, res, next) ->