Skip to content

Add options for renderUrl#85

Open
laughingdrew wants to merge 1 commit intostatic-dev:masterfrom
laughingdrew:renderurl-options
Open

Add options for renderUrl#85
laughingdrew wants to merge 1 commit intostatic-dev:masterfrom
laughingdrew:renderurl-options

Conversation

@laughingdrew
Copy link

By default, passing options to an endpoint is only available in the renderGraphql function with spike-records. Cockpit CMS requires posting an entity to an endpoint in order to filter results so I needed the ability to change the METHOD and send along a payload. I didn't do much other than copy the code from the renderGraphql function, but this allows a user to perform more than just GET requests with renderUrl

@jescalan
Copy link
Member

Looks great! Could you update the documentation in the readme and add a test for this? After that we can get it merged up 💣

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

Successfully merging this pull request may close these issues.

2 participants