summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/RouteProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-11 18:21:47 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-11 18:21:47 -0500
commitb834f5475c8eebb76548046558e7d1464cbd01d4 (patch)
tree9742c9f329e496e9a5dc40f2bac5fd02e5051b41 /app/ServiceProvider/RouteProvider.php
parent6e54cbd6e9642eb4cfe5dce22d43c9dfafac324e (diff)
Add routes for exports
Diffstat (limited to 'app/ServiceProvider/RouteProvider.php')
-rw-r--r--app/ServiceProvider/RouteProvider.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php
index bf161ef5..6b1d0d88 100644
--- a/app/ServiceProvider/RouteProvider.php
+++ b/app/ServiceProvider/RouteProvider.php
@@ -108,6 +108,12 @@ class RouteProvider implements ServiceProviderInterface
$container['router']->addRoute('project/:project_id/task/:task_id/move', 'taskduplication', 'move', array('task_id', 'project_id'));
$container['router']->addRoute('project/:project_id/task/:task_id/move/:dst_project_id', 'taskduplication', 'move', array('task_id', 'project_id', 'dst_project_id'));
+ // Exports
+ $container['router']->addRoute('export/tasks/:project_id', 'export', 'tasks', array('project_id'));
+ $container['router']->addRoute('export/subtasks/:project_id', 'export', 'subtasks', array('project_id'));
+ $container['router']->addRoute('export/transitions/:project_id', 'export', 'transitions', array('project_id'));
+ $container['router']->addRoute('export/summary/:project_id', 'export', 'summary', array('project_id'));
+
// Board routes
$container['router']->addRoute('board/:project_id', 'board', 'show', array('project_id'));
$container['router']->addRoute('b/:project_id', 'board', 'show', array('project_id'));