mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
move status and health checks to public api router
This commit is contained in:
parent
845ee51a67
commit
1dbeebabd2
1 changed files with 3 additions and 3 deletions
|
@ -271,7 +271,7 @@ module.exports = class Router
|
||||||
privateApiRouter.get '/perfTest', (req,res)->
|
privateApiRouter.get '/perfTest', (req,res)->
|
||||||
res.send("hello")
|
res.send("hello")
|
||||||
|
|
||||||
webRouter.get '/status', (req,res)->
|
publicApiRouter.get '/status', (req,res)->
|
||||||
res.send("web sharelatex is alive (web)")
|
res.send("web sharelatex is alive (web)")
|
||||||
privateApiRouter.get '/status', (req,res)->
|
privateApiRouter.get '/status', (req,res)->
|
||||||
res.send("web sharelatex is alive (api)")
|
res.send("web sharelatex is alive (api)")
|
||||||
|
@ -279,10 +279,10 @@ module.exports = class Router
|
||||||
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
|
publicApiRouter.get '/health_check', HealthCheckController.check
|
||||||
privateApiRouter.get '/health_check', HealthCheckController.check
|
privateApiRouter.get '/health_check', HealthCheckController.check
|
||||||
|
|
||||||
webRouter.get '/health_check/redis', HealthCheckController.checkRedis
|
publicApiRouter.get '/health_check/redis', HealthCheckController.checkRedis
|
||||||
privateApiRouter.get '/health_check/redis', HealthCheckController.checkRedis
|
privateApiRouter.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