Welcome Guest, Not a member yet? Register   Sign In
Myth/Auth - Routing problem
#2

(This post was last modified: 04-12-2020, 06:20 PM by includebeer.)

The first route would give domain.com/user/user
Is this the URL your are typing? What doesn’t work? Do you get a 404 or something else?

Maybe this would make more sense?
PHP Code:
$routes->group('user', ['filter' => 'role:Users'], function($routes) {
    $routes->get('/''User::index'); // domain.com/user
    $routes->get('profile''User::profile');  // domain.com/user/profile
}); 
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
Myth/Auth - Routing problem - by BilltheCat - 04-12-2020, 04:23 PM
RE: Myth/Auth - Routing problem - by includebeer - 04-12-2020, 06:17 PM
RE: Myth/Auth - Routing problem - by BilltheCat - 04-12-2020, 08:23 PM
RE: Myth/Auth - Routing problem - by BilltheCat - 04-13-2020, 04:25 AM
RE: Myth/Auth - Routing problem - by includebeer - 04-13-2020, 04:26 AM
RE: Myth/Auth - Routing problem - by BilltheCat - 04-13-2020, 04:46 AM
RE: Myth/Auth - Routing problem - by Nome - 04-13-2020, 06:16 AM
RE: Myth/Auth - Routing problem - by includebeer - 04-13-2020, 06:39 AM
RE: Myth/Auth - Routing problem - by Nome - 04-13-2020, 06:51 AM
RE: Myth/Auth - Routing problem - by includebeer - 04-13-2020, 07:08 AM
RE: Myth/Auth - Routing problem - by Nome - 04-13-2020, 07:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB