Skip to content

Commit

Permalink
[Training] add trainings update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreEtienne committed Aug 8, 2017
1 parent baaddcd commit e1cdb81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/training.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ const Training = function (fetch, baseUrl, token) {
container_mode: true
})
},
update (id, patchset) {
return api.fetch(`trainings/${id}/`, 'PATCH', patchset)
},
delete (id) {
return api.fetch(`trainings/${id}/`, 'DELETE')
},
Expand Down

0 comments on commit e1cdb81

Please sign in to comment.