added project status endpoint

used for getting the server a project is on
This commit is contained in:
Henry Oswald 2016-04-20 15:38:05 +01:00
parent d416f75c2c
commit e024d3f503
2 changed files with 5 additions and 0 deletions

View file

@ -48,6 +48,7 @@ app.delete "/project/:project_id", CompileController.clearCache
app.get "/project/:project_id/sync/code", CompileController.syncFromCode
app.get "/project/:project_id/sync/pdf", CompileController.syncFromPdf
app.get "/project/:project_id/wordcount", CompileController.wordcount
app.get "/project/:project_id/status", CompileController.status
ForbidSymlinks = require "./app/js/StaticServerForbidSymlinks"

View file

@ -78,3 +78,7 @@ module.exports = CompileController =
res.send JSON.stringify {
texcount: result
}
status: (req, res, next = (error)-> )->
res.send("OK")