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');
});
This should be routed with
www.mydomain.com/api
www.mydomain.com/Api
$routes->group('api', function ($routes) {
$routes->post('/', 'MyController::myFunction');
});