mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
support status and health check on web and web-api
This commit is contained in:
parent
02cb0f2295
commit
d32a3fbaf5
1 changed files with 6 additions and 1 deletions
|
@ -267,13 +267,18 @@ module.exports = class Router
|
||||||
apiRouter.get '/perfTest', (req,res)->
|
apiRouter.get '/perfTest', (req,res)->
|
||||||
res.send("hello")
|
res.send("hello")
|
||||||
|
|
||||||
apiRouter.get '/status', (req,res)->
|
webRouter.get '/status', (req,res)->
|
||||||
res.send("websharelatex is up")
|
res.send("websharelatex is up")
|
||||||
|
apiRouter.get '/status', (req,res)->
|
||||||
|
res.send("websharelatex api is up")
|
||||||
|
|
||||||
webRouter.get '/dev/csrf', (req, res) ->
|
webRouter.get '/dev/csrf', (req, res) ->
|
||||||
res.send res.locals.csrfToken
|
res.send res.locals.csrfToken
|
||||||
|
|
||||||
|
webRouter.get '/health_check', HealthCheckController.check
|
||||||
apiRouter.get '/health_check', HealthCheckController.check
|
apiRouter.get '/health_check', HealthCheckController.check
|
||||||
|
|
||||||
|
webRouter.get '/health_check/redis', HealthCheckController.checkRedis
|
||||||
apiRouter.get '/health_check/redis', HealthCheckController.checkRedis
|
apiRouter.get '/health_check/redis', HealthCheckController.checkRedis
|
||||||
|
|
||||||
webRouter.get "/status/compiler/:Project_id", AuthorizationMiddlewear.ensureUserCanReadProject, (req, res) ->
|
webRouter.get "/status/compiler/:Project_id", AuthorizationMiddlewear.ensureUserCanReadProject, (req, res) ->
|
||||||
|
|
Loading…
Reference in a new issue