mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 17:47:01 -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.status(503)
|
||||||
res.render("general/closed", {title:"maintenance"})
|
res.render("general/closed", {title:"maintenance"})
|
||||||
|
|
||||||
apiRouter.get "/status", (req, res)->
|
|
||||||
res.send("web sharelatex is alive")
|
|
||||||
|
|
||||||
profiler = require "v8-profiler"
|
profiler = require "v8-profiler"
|
||||||
apiRouter.get "/profile", (req, res) ->
|
apiRouter.get "/profile", (req, res) ->
|
||||||
time = parseInt(req.query.time || "1000")
|
time = parseInt(req.query.time || "1000")
|
||||||
|
|
|
@ -272,9 +272,9 @@ module.exports = class Router
|
||||||
res.send("hello")
|
res.send("hello")
|
||||||
|
|
||||||
webRouter.get '/status', (req,res)->
|
webRouter.get '/status', (req,res)->
|
||||||
res.send("websharelatex is up")
|
res.send("websharelatex is alive (web)")
|
||||||
apiRouter.get '/status', (req,res)->
|
apiRouter.get '/status', (req,res)->
|
||||||
res.send("websharelatex api is up")
|
res.send("websharelatex is alive (api)")
|
||||||
|
|
||||||
webRouter.get '/dev/csrf', (req, res) ->
|
webRouter.get '/dev/csrf', (req, res) ->
|
||||||
res.send res.locals.csrfToken
|
res.send res.locals.csrfToken
|
||||||
|
|
Loading…
Reference in a new issue