Welcome Guest, Not a member yet? Register   Sign In
myth-auth How not to load the default routes
#8

(06-11-2021, 07:46 PM)paliz Wrote: Put dashbord ctl in app/conttoller

I tried different ways, followed your tips, but to no avail.

I had to do it this way:
PHP Code:
$routes->group('/', ['filter' => 'login'], function($routes){
 
/** Redirect attempts to Registration, Activation and Forgot/Resets */
 
$routes->match(['get''post'], 'register''CDR\Dashboard::index');
 
$routes->get('activate-account''CDR\Dashboard::index');
 
$routes->get('resend-activate-accoun''CDR\Dashboard::index');
 
$routes->match(['get''post'], 'forgot''CDR\Dashboard::index');
 
$routes->match(['get''post'], 'reset-password''CDR\Dashboard::index');
 
/** Redirect end */
 
$routes->get('''CDR\Dashboard::index');
 
$routes->group('users', function($routes){
 
$routes->get('add''CDR\Users::add');
 
$routes->post('add''CDR\Users::store');
 });
}); 
Reply


Messages In This Thread
RE: myth-auth How not to load the default routes - by rafinhaa - 06-14-2021, 08:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB