-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Move 'installation:complete' to web instead of per route #1467
Conversation
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.
Are Installation routes excluded from this?
Yes, because the installation routes are in |
Why is this middleware not applied to the API? If there's no reason, you should apply it there too. |
Yes, there is a reason. The API client expects JSON responses. A redirection to a HTML page (with the installer) is nothing an API client can handle. |
Does it return something else instead or does it just fail if there's e.g. a DB request? |
If the request fails, it returns the error message of the code line which caused the request to fail as all failing requests do. If the request fails, it uses the normal error reporting mechanisms as always. |
Sure, but it would be better to report something like "not installed". |
Definitely yes. And I have checked to code again. When I wrote the exception handler and created the exception So back to what you have initially suggested in #1467 (comment). We actually can apply this middleware to the API and we are good. |
Minor refactoring to simplify middleware in routes in
web.php
.