Merge pull request #1490 from sharelatex/ns-remove-ip-endpoint

remove /ip endpoint

GitOrigin-RevId: 42ea1ff6db6cba5e74a6e6c133a4d9f2b93d4a2e
This commit is contained in:
Simon Detheridge 2019-02-11 11:23:19 +00:00 committed by sharelatex
parent 81e3db260c
commit 9e07daba0b

View file

@ -470,13 +470,6 @@ module.exports = class Router
else
sendRes 500, "Compiler returned failure #{status}"
webRouter.get "/ip", (req, res, next) ->
res.send({
ip: req.ip
ips: req.ips
headers: req.headers
})
webRouter.get "/no-cache", (req, res, next)->
res.header("Cache-Control", "max-age=0")
res.sendStatus(404)