Skip to content

Commit

Permalink
Merge pull request #2057 from bromagosa/newer-cloud
Browse files Browse the repository at this point in the history
remix project method
  • Loading branch information
jmoenig committed Mar 14, 2018
2 parents a8337d6 + 7257c25 commit 6fe9465
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,23 @@ Cloud.prototype.unpublishProject = function (
);
};

Cloud.prototype.remixProject = function (
projectName,
username,
onSuccess,
onError
) {
this.withCredentialsRequest(
'POST',
'/projects/' + encodeURIComponent(username) +
'/' + encodeURIComponent(projectName) +
'/remix',
onSuccess,
onError,
'Could not remix project'
);
};

Cloud.prototype.updateNotes = function (
projectName,
notes,
Expand Down

0 comments on commit 6fe9465

Please sign in to comment.