added project status endpoint
used for getting the server a project is on
This commit is contained in:
@@ -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/code", CompileController.syncFromCode
|
||||||
app.get "/project/:project_id/sync/pdf", CompileController.syncFromPdf
|
app.get "/project/:project_id/sync/pdf", CompileController.syncFromPdf
|
||||||
app.get "/project/:project_id/wordcount", CompileController.wordcount
|
app.get "/project/:project_id/wordcount", CompileController.wordcount
|
||||||
|
app.get "/project/:project_id/status", CompileController.status
|
||||||
|
|
||||||
ForbidSymlinks = require "./app/js/StaticServerForbidSymlinks"
|
ForbidSymlinks = require "./app/js/StaticServerForbidSymlinks"
|
||||||
|
|
||||||
|
|||||||
@@ -78,3 +78,7 @@ module.exports = CompileController =
|
|||||||
res.send JSON.stringify {
|
res.send JSON.stringify {
|
||||||
texcount: result
|
texcount: result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
status: (req, res, next = (error)-> )->
|
||||||
|
res.send("OK")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user