Welcome Guest, Not a member yet? Register   Sign In
How to make routes case insensitive
#1
Brick 

I've create API on CI4 and set all the routes then found out that all routes are case sensitive though I want to ignore case and match either way, how do I do it?

This should be routed with 
www.mydomain.com/api
www.mydomain.com/Api
$routes->group('api'function ($routes) {
    $routes->post('/''MyController::myFunction');
});
Reply


Messages In This Thread
How to make routes case insensitive - by UzairAli001 - 03-26-2021, 11:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB