summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/RouteProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-06 17:50:05 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-06 17:50:05 -0500
commit563bfafe6b9845997ac9e7b87672fdeb4728aed1 (patch)
treeb8ed7acabb4738604db8e0fb32a1e91338118d74 /app/ServiceProvider/RouteProvider.php
parentf0651c48c14f44a21d01c2ee71ebdd0a5ffd81a6 (diff)
Add routes for groups section
Diffstat (limited to 'app/ServiceProvider/RouteProvider.php')
-rw-r--r--app/ServiceProvider/RouteProvider.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php
index 5b97229e..44ecebec 100644
--- a/app/ServiceProvider/RouteProvider.php
+++ b/app/ServiceProvider/RouteProvider.php
@@ -153,6 +153,15 @@ class RouteProvider implements ServiceProviderInterface
$container['router']->addRoute('user/:user_id/authentication', 'user', 'authentication', array('user_id'));
$container['router']->addRoute('user/:user_id/2fa', 'twofactor', 'index', array('user_id'));
+ // Groups
+ $container['router']->addRoute('groups', 'group', 'index');
+ $container['router']->addRoute('groups/create', 'group', 'create');
+ $container['router']->addRoute('group/:group_id/associate', 'group', 'associate', array('group_id'));
+ $container['router']->addRoute('group/:group_id/dissociate/:user_id', 'group', 'dissociate', array('group_id', 'user_id'));
+ $container['router']->addRoute('group/:group_id/edit', 'group', 'edit', array('group_id'));
+ $container['router']->addRoute('group/:group_id/members', 'group', 'users', array('group_id'));
+ $container['router']->addRoute('group/:group_id/remove', 'group', 'confirm', array('group_id'));
+
// Auth routes
$container['router']->addRoute('oauth/google', 'oauth', 'google');
$container['router']->addRoute('oauth/github', 'oauth', 'github');