-
Notifications
You must be signed in to change notification settings - Fork 30
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
Hardcoded end point #9
Comments
Hey @zaeemarshad, my Elixir knowledge is not that much, could you consider making a PR to make it configurable but keeping the interface as is? Cheers |
@dlitvakb So I have refactored the code a bit and split it into two modules i.e. Delivery and Preview to represent the endpoints. The interface is the same except that the functions have been moved to Contentful.Functions. I have yet to add tests for preview which I shall do soon time permitting. |
I have actually not forgotten about this and will enter a |
The endpoint is hard-coded to cdn.contentful.com which only shows entries that have been published. By making it a run-time config, one can set the endpoint to preview.contentful.com and retrieve entries that are in draft state.
The text was updated successfully, but these errors were encountered: