-
Notifications
You must be signed in to change notification settings - Fork 11
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
Allow configuring multiple routes that point to different endpoints #14
Conversation
c290104
to
a61f741
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spawnia what do you think about this approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the way to go, nice work
50a38c2
to
c92c810
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All feedback addressed AFAICS!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tweaks are getting smaller 😉
Instead of a single route definition, multiple routes can be defined. They "key" is the URI name and necessary for the controller to look up the config for e.g. the endpoint.
Thanks for merging and also putting in some final touches! Already tried in a private project, all working so far 🙏🏼 |
Summary
Instead of a single route definition, multiple routes can be defined.
They "key" is the URI name and necessary for the controller to look up the config for e.g. the endpoint.
The diff is pretty wild, it's best viewed with disabling whitespace.
This is obviously a major breakage and would require a new major version 😬
Notes
Before making the PR I verified the feasibility by modifying vendor files in a private project using rebing/graphql-laravel to achieve the desired effect.
TODO
Some parts are already outdated but in general a few more pieces should be adjusted.
Links