mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-22 07:51:20 +00:00
Merge pull request #1490 from sharelatex/ns-remove-ip-endpoint
remove /ip endpoint GitOrigin-RevId: 42ea1ff6db6cba5e74a6e6c133a4d9f2b93d4a2e
This commit is contained in:
parent
81e3db260c
commit
9e07daba0b
1 changed files with 0 additions and 7 deletions
|
@ -470,13 +470,6 @@ module.exports = class Router
|
||||||
else
|
else
|
||||||
sendRes 500, "Compiler returned failure #{status}"
|
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)->
|
webRouter.get "/no-cache", (req, res, next)->
|
||||||
res.header("Cache-Control", "max-age=0")
|
res.header("Cache-Control", "max-age=0")
|
||||||
res.sendStatus(404)
|
res.sendStatus(404)
|
||||||
|
|
Loading…
Reference in a new issue