I'm trying to using codeigniter 4 {locale}
group.
$routes->group('{locale}', function ($routes){
$routes->group('customer', function ($routes){
$routes->match(['get','post'],'/', 'Customer::index');
});
});
When I accessing to en/customer/
everything good but if i trying to access without locale like this customer/
im getting 404 error.
My default language en
i want to do If there is no language in the route, the page should work with the default language.