update docupdater endpoint to /project/id/docs

This commit is contained in:
Brian Gough 2017-08-03 14:41:34 +01:00
parent 0109585092
commit 54e02cd895

View file

@ -38,7 +38,7 @@ app.param 'doc_id', (req, res, next, doc_id) ->
next new Error("invalid doc id")
app.get '/project/:project_id/doc/:doc_id', HttpController.getDoc
app.get '/project/:project_id', HttpController.getProjectDocs
app.get '/project/:project_id/doc', HttpController.getProjectDocs
app.post '/project/:project_id/doc/:doc_id', HttpController.setDoc
app.post '/project/:project_id/doc/:doc_id/flush', HttpController.flushDocIfLoaded
app.delete '/project/:project_id/doc/:doc_id', HttpController.flushAndDeleteDoc