avoid duplicate routes for /status

This commit is contained in:
Brian Gough 2017-07-04 12:41:51 +01:00
parent 9417266966
commit b2f676af5a
2 changed files with 2 additions and 5 deletions

View file

@ -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")

View file

@ -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