diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-06 16:24:19 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-06 16:24:19 -0500 |
commit | bd849ff655f9b31f90425c07e5773c7a4e956c34 (patch) | |
tree | 0252acc9b16bd4e0bf7cb78b5e2059ab1c0353a5 /app/ServiceProvider/RouteProvider.php | |
parent | 42a837a83395fc2ff5b18d60b436c21ee26a038c (diff) |
Add routes for users section
Diffstat (limited to 'app/ServiceProvider/RouteProvider.php')
-rw-r--r-- | app/ServiceProvider/RouteProvider.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php index 60ed161c..5b97229e 100644 --- a/app/ServiceProvider/RouteProvider.php +++ b/app/ServiceProvider/RouteProvider.php @@ -42,7 +42,7 @@ class RouteProvider implements ServiceProviderInterface // Project routes $container['router']->addRoute('projects', 'project', 'index'); $container['router']->addRoute('project/create', 'project', 'create'); - $container['router']->addRoute('project/create/:private', 'project', 'create', array('private')); + $container['router']->addRoute('project/create/private', 'project', 'createPrivate'); $container['router']->addRoute('project/:project_id', 'project', 'show', array('project_id')); $container['router']->addRoute('p/:project_id', 'project', 'show', array('project_id')); $container['router']->addRoute('project/:project_id/customer-filter', 'customfilter', 'index', array('project_id')); @@ -138,6 +138,21 @@ class RouteProvider implements ServiceProviderInterface $container['router']->addRoute('ical/project/:token', 'ical', 'project', array('token')); $container['router']->addRoute('ical/user/:token', 'ical', 'user', array('token')); + // Users + $container['router']->addRoute('users', 'user', 'index'); + $container['router']->addRoute('user/show/:user_id', 'user', 'show', array('user_id')); + $container['router']->addRoute('user/show/:user_id/timesheet', 'user', 'timesheet', array('user_id')); + $container['router']->addRoute('user/show/:user_id/last-logins', 'user', 'last', array('user_id')); + $container['router']->addRoute('user/show/:user_id/sessions', 'user', 'sessions', array('user_id')); + $container['router']->addRoute('user/:user_id/edit', 'user', 'edit', array('user_id')); + $container['router']->addRoute('user/:user_id/password', 'user', 'password', array('user_id')); + $container['router']->addRoute('user/:user_id/share', 'user', 'share', array('user_id')); + $container['router']->addRoute('user/:user_id/notifications', 'user', 'notifications', array('user_id')); + $container['router']->addRoute('user/:user_id/accounts', 'user', 'external', array('user_id')); + $container['router']->addRoute('user/:user_id/integrations', 'user', 'integrations', array('user_id')); + $container['router']->addRoute('user/:user_id/authentication', 'user', 'authentication', array('user_id')); + $container['router']->addRoute('user/:user_id/2fa', 'twofactor', 'index', array('user_id')); + // Auth routes $container['router']->addRoute('oauth/google', 'oauth', 'google'); $container['router']->addRoute('oauth/github', 'oauth', 'github'); |