summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/RouteProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-14 21:20:39 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-14 21:20:39 -0500
commit4493e5409f81bf9a22c8b8b7a708247806341d35 (patch)
tree3395d9de64d75c848a4720061fe41a95f8aec5de /app/ServiceProvider/RouteProvider.php
parentf01e2f4b781651b2fbb9e1dc079c7eaaae14a4d2 (diff)
Add routes for ProjectUser controller
Diffstat (limited to 'app/ServiceProvider/RouteProvider.php')
-rw-r--r--app/ServiceProvider/RouteProvider.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php
index 6b1d0d88..26ab488a 100644
--- a/app/ServiceProvider/RouteProvider.php
+++ b/app/ServiceProvider/RouteProvider.php
@@ -57,6 +57,13 @@ class RouteProvider implements ServiceProviderInterface
$container['router']->addRoute('project/:project_id/permissions', 'ProjectPermission', 'index', array('project_id'));
$container['router']->addRoute('project/:project_id/import', 'taskImport', 'step1', array('project_id'));
+ // ProjectUser routes
+ $container['router']->addRoute('projects/managers/:user_id', 'projectuser', 'managers', array('user_id'));
+ $container['router']->addRoute('projects/members/:user_id', 'projectuser', 'members', array('user_id'));
+ $container['router']->addRoute('projects/tasks/:user_id/opens', 'projectuser', 'opens', array('user_id'));
+ $container['router']->addRoute('projects/tasks/:user_id/closed', 'projectuser', 'closed', array('user_id'));
+ $container['router']->addRoute('projects/managers', 'projectuser', 'managers');
+
// Action routes
$container['router']->addRoute('project/:project_id/actions', 'action', 'index', array('project_id'));
$container['router']->addRoute('project/:project_id/action/:action_id/confirm', 'action', 'confirm', array('project_id', 'action_id'));