mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-03 07:44:27 +00:00
changed back to standard /archive /unarchive
This commit is contained in:
parent
5765b59e0c
commit
5dd33ea313
2 changed files with 2 additions and 11 deletions
|
@ -22,11 +22,6 @@ app.get '/project/:project_id/doc/:doc_id/raw', HttpController.getRawDoc
|
|||
app.post '/project/:project_id/doc/:doc_id', bodyParser.json(limit: "2mb"), HttpController.updateDoc
|
||||
app.del '/project/:project_id/doc/:doc_id', HttpController.deleteDoc
|
||||
|
||||
|
||||
app.post '/project/:project_id/deactivate', HttpController.archiveAllDocs
|
||||
app.post '/project/:project_id/reactivate', HttpController.unArchiveAllDocs
|
||||
|
||||
# can delete these two soon
|
||||
app.post '/project/:project_id/archive', HttpController.archiveAllDocs
|
||||
app.post '/project/:project_id/unarchive', HttpController.unArchiveAllDocs
|
||||
|
||||
|
|
|
@ -43,14 +43,10 @@ module.exports = DocstoreClient =
|
|||
|
||||
archiveAllDoc: (project_id, callback = (error, res, body) ->) ->
|
||||
request.post {
|
||||
url: "http://localhost:#{settings.internal.docstore.port}/project/#{project_id}/deactivate"
|
||||
}, callback
|
||||
|
||||
unArchiveAllDoc: (project_id, callback = (error, res, body) ->) ->
|
||||
request.post {
|
||||
url: "http://localhost:#{settings.internal.docstore.port}/project/#{project_id}/deactivate"
|
||||
url: "http://localhost:#{settings.internal.docstore.port}/project/#{project_id}/archive"
|
||||
}, callback
|
||||
|
||||
|
||||
getS3Doc: (project_id, doc_id, callback = (error, res, body) ->) ->
|
||||
options = DocArchiveManager.buildS3Options(true, project_id+"/"+doc_id)
|
||||
request.get options, callback
|
||||
|
|
Loading…
Reference in a new issue