We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey there, I want to build a website with a tiny build in API.
/dashboard → Homepage /api/getUser → API
/dashboard
/api/getUser
My Problem now is: I have an HTML 404 defined, but I want to define a custom JSON 404 for my API mount. But this is not working:
$router->mount('/api', function() use ($router) { $router->get('/', 'APIHandler@index'); $router->set404(function() { echo "api nono"; }); });
So, this is a Feature Request to make 404 in mounts overwritable 😄
The text was updated successfully, but these errors were encountered:
This is currently not supported yet I'd happily accept a PR that provides this.
Sorry, something went wrong.
Hey @bramus,
would be great, if you could review my PRs 😄 This is just a little poke that my PRs are ready to merge
Merge pull request #148 from uvulpos/feature/multiple404#144
b38dd90
added multiple 404 routes -> issue #144
@uvulpos Thanks for the reminder … merged!
No branches or pull requests
Hey there,
I want to build a website with a tiny build in API.
/dashboard
→ Homepage/api/getUser
→ APIMy Problem now is: I have an HTML 404 defined, but I want to define a custom JSON 404 for my API mount. But this is not working:
So, this is a Feature Request to make 404 in mounts overwritable 😄
The text was updated successfully, but these errors were encountered: