Skip to content

Instantly share code, notes, and snippets.

@agenthunt
Created March 27, 2018 23:00
Show Gist options
  • Save agenthunt/bbb198d281562f9d9a8727807f2533f7 to your computer and use it in GitHub Desktop.
Save agenthunt/bbb198d281562f9d9a8727807f2533f7 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',
generateDefault: true,
override: {
getUser: {
url: 'http://localhost:5000/user/:id'
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment