added project status endpoint

used for getting the server a project is on
This commit is contained in:
Henry Oswald committed 2016-04-20 15:38:05 +01:00
1 parent 6860d2be6c
commit 5f7cd5ece5
2 files changed
+5

No files matched your search

+1
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"
+4
View File
@@ -78,3 +78,7 @@ module.exports = CompileController =
res.send JSON.stringify {
texcount: result
}
status: (req, res, next = (error)-> )->
res.send("OK")