mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
keep the existing GET method temporarily
to avoid any problems due to deployment in the wrong order
This commit is contained in:
parent
7cbb3e7af8
commit
727a534d01
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue