mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add in /dev/csrf endpoint for easy automated testing
This commit is contained in:
parent
9f9852a1dd
commit
62a444082d
1 changed files with 2 additions and 0 deletions
|
@ -242,6 +242,8 @@ module.exports = class Router
|
||||||
apiRouter.get '/status', (req,res)->
|
apiRouter.get '/status', (req,res)->
|
||||||
res.send("websharelatex is up")
|
res.send("websharelatex is up")
|
||||||
|
|
||||||
|
webRouter.get '/dev/csrf', (req, res) ->
|
||||||
|
res.send res.locals.csrfToken
|
||||||
|
|
||||||
apiRouter.get '/health_check', HealthCheckController.check
|
apiRouter.get '/health_check', HealthCheckController.check
|
||||||
apiRouter.get '/health_check/redis', HealthCheckController.checkRedis
|
apiRouter.get '/health_check/redis', HealthCheckController.checkRedis
|
||||||
|
|
Loading…
Reference in a new issue