Skip to content

Commit

Permalink
Change put to PATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
nhumrich committed Jul 25, 2016
1 parent 953e58d commit 58c2747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmeister/static/src/toggles/toggles.actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function newToggles(toggles) {
export function turnFeatureOn(toggle) {
return dispatch => {
fetch(`/api/toggles`, {
method: 'PUT',
method: 'PATCH',
body: JSON.stringify({
toggle: {
...toggle.toggle,
Expand Down Expand Up @@ -64,7 +64,7 @@ export function turnFeatureOn(toggle) {
export function turnFeatureOff(toggle) {
return dispatch => {
fetch(`/api/toggles`, {
method: 'PUT',
method: 'PATCH',
body: JSON.stringify({
toggle: {
...toggle.toggle,
Expand Down

0 comments on commit 58c2747

Please sign in to comment.