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 6860d2be6c
commit 5f7cd5ece5
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")