-
-
Notifications
You must be signed in to change notification settings - Fork 30
Added custom web routes documentation #60
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
Conversation
Hiya! Having this as part of our guides would actually come really useful! Could you make the changes I requested in previous PRs? |
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.
For reference on what actually handles routes: https://github.com/BlueprintFramework/framework/blob/main/app/Providers/Blueprint/RouteServiceProvider.php
Prefixes for route options are:
- web: /extensions/identifier
- application: /api/application/extensions/identifier
- client: /api/client/extensions/identifier
Web is available to everyone (even users that aren't logged in) unlike application and client, which are limited to valid API keys.
This is not required to have in the guide, but useful for you to know; Binding a route file directly to routers:
instead of any of it's suboptions defaults to the routers:web
suboption.
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.
lgtm
I don't know if that's wanted but you can never have enough documentation 😄
Preview: