From 727a534d01b82b8c1454c116d21a81628cbc0295 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 11 Oct 2017 15:44:35 +0100 Subject: [PATCH] keep the existing GET method temporarily to avoid any problems due to deployment in the wrong order --- services/document-updater/app.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/document-updater/app.coffee b/services/document-updater/app.coffee index 740cd59da4..41cab59680 100644 --- a/services/document-updater/app.coffee +++ b/services/document-updater/app.coffee @@ -38,6 +38,9 @@ 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 +# temporarily keep the GET method for backwards compatibility +app.get '/project/:project_id/doc', HttpController.getProjectDocsAndFlushIfOld +# will migrate to the POST method of get_and_flush_if_old instead app.post '/project/:project_id/get_and_flush_if_old', HttpController.getProjectDocsAndFlushIfOld app.post '/project/:project_id/clearState', HttpController.clearProjectState app.post '/project/:project_id/doc/:doc_id', HttpController.setDoc