mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
avoid duplicate routes for /status
This commit is contained in:
parent
9417266966
commit
b2f676af5a
2 changed files with 2 additions and 5 deletions
|
@ -142,9 +142,6 @@ webRouter.use (req, res, next) ->
|
|||
res.status(503)
|
||||
res.render("general/closed", {title:"maintenance"})
|
||||
|
||||
apiRouter.get "/status", (req, res)->
|
||||
res.send("web sharelatex is alive")
|
||||
|
||||
profiler = require "v8-profiler"
|
||||
apiRouter.get "/profile", (req, res) ->
|
||||
time = parseInt(req.query.time || "1000")
|
||||
|
|
|
@ -272,9 +272,9 @@ module.exports = class Router
|
|||
res.send("hello")
|
||||
|
||||
webRouter.get '/status', (req,res)->
|
||||
res.send("websharelatex is up")
|
||||
res.send("websharelatex is alive (web)")
|
||||
apiRouter.get '/status', (req,res)->
|
||||
res.send("websharelatex api is up")
|
||||
res.send("websharelatex is alive (api)")
|
||||
|
||||
webRouter.get '/dev/csrf', (req, res) ->
|
||||
res.send res.locals.csrfToken
|
||||
|
|
Loading…
Reference in a new issue