Skip to content

Instantly share code, notes, and snippets.

@agenthunt
Last active March 27, 2018 22:35
Show Gist options
  • Save agenthunt/c14afcdbdd8d61a36e995d410558caf7 to your computer and use it in GitHub Desktop.
Save agenthunt/c14afcdbdd8d61a36e995d410558caf7 to your computer and use it in GitHub Desktop.
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