Add in /dev/csrf endpoint for easy automated testing

This commit is contained in:
James Allen 2016-07-18 16:47:45 +01:00
parent 9f9852a1dd
commit 62a444082d

View file

@ -242,6 +242,8 @@ module.exports = class Router
apiRouter.get '/status', (req,res)->
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/redis', HealthCheckController.checkRedis