Collabratec Get Projects API (#1092)

collabratec get projects api

GitOrigin-RevId: c733aecf515cf75ca1ae9c454efa7a35f09cf495
This commit is contained in:
Ersun Warncke
2018-11-06 13:48:49 +00:00
committed by sharelatex
parent 2ea0644cfa
commit f3b92bbeec
5 changed files with 29 additions and 5 deletions
@@ -185,6 +185,10 @@ class User
return callback(error) if error?
callback(null)
deleteProjects: (callback=(error)) ->
db.projects.remove owner_ref:ObjectId(@id), {multi:true}, (err)->
callback(err)
openProject: (project_id, callback=(error)) ->
@request.get {
url: "/project/#{project_id}"