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

Configurable HTTP method #2

Open
brianstorti opened this issue Feb 12, 2016 · 1 comment
Open

Configurable HTTP method #2

brianstorti opened this issue Feb 12, 2016 · 1 comment

Comments

@brianstorti
Copy link

In case we want to use an http verb other than POST, it'd be useful to be able to specify it when we mount the engine. Something like:

mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/graph", method: :get

If you thing this is useful, I can work on the change.

Thanks.

@rmosolgo
Copy link
Owner

Yes, that'd be great! Can we call it graphql_method? That way it matches graphql_path & it's clear that it's the method for the GraphQL API endpoint, not for the GraphiQL editor.

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

2 participants