bramus / router

A lightweight and simple object oriented PHP Router
MIT License
1.09k stars 245 forks source link

404 error executing more than twice #209

Open ghost opened 1 year ago

ghost commented 1 year ago

When i Set 404 error the redirect execure 10 times, I d like to redict to a 404 page instead print

` $router->set404( function () {

});`

even I cannot set an error with user input wrong world for login

$router->set404('/api(/.*)?', function() {