make compiler health check available on web

This commit is contained in:
Brian Gough 2017-06-19 15:52:04 +01:00
parent 62d6933886
commit 02cb0f2295

View file

@ -276,7 +276,7 @@ module.exports = class Router
apiRouter.get '/health_check', HealthCheckController.check
apiRouter.get '/health_check/redis', HealthCheckController.checkRedis
apiRouter.get "/status/compiler/:Project_id", AuthorizationMiddlewear.ensureUserCanReadProject, (req, res) ->
webRouter.get "/status/compiler/:Project_id", AuthorizationMiddlewear.ensureUserCanReadProject, (req, res) ->
project_id = req.params.Project_id
sendRes = _.once (statusCode, message)->
res.status statusCode