Last active
March 27, 2018 22:35
-
-
Save agenthunt/c14afcdbdd8d61a36e995d410558caf7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStar } from 'redux-nakshatra'; | |
export const { rootSaga, types, actions, rootReducer } = createStar({ | |
name: 'users', | |
http: { | |
url: 'http://localhost:5000/users', | |
add: { | |
getUsers: { | |
method: 'get' | |
}, | |
postUser: { | |
method: 'post' | |
}, | |
patchUser: { | |
method: 'patch' | |
}, | |
deleteUser: { | |
method: 'delete' | |
}, | |
putUser: { | |
method: 'put' | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment