Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to add endpoints to the built API #16

Open
danbovey opened this issue Aug 8, 2017 · 0 comments
Open

Add ability to add endpoints to the built API #16

danbovey opened this issue Aug 8, 2017 · 0 comments

Comments

@danbovey
Copy link

danbovey commented Aug 8, 2017

If you use redux-bees in a chunked application, the logic for many other pages can be chunked up into files that can be loaded later with Webpack JSONP but the object for API calls will be full of endpoints that won't be used - making the main chunk file larger.

So you should add the ability to call this function which would generate a new function, for example, API.getDifferentPosts() dynamically.

API.addEndpoints({
    getDifferentPosts: { method: get, path: '/path/to/different/apis' }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant