summaryrefslogtreecommitdiff
path: root/app/common.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-14 17:03:55 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-14 17:03:55 -0400
commit17a3781bd8c03e6b653104dbcb996a1ff1213959 (patch)
tree8cf5de301e55f62465d19f270109c6c7c49cc5ce /app/common.php
parentc6a4fbb3864d63a69a0b42d17f5c3037a73da961 (diff)
Add Gantt chart for projects
Diffstat (limited to 'app/common.php')
-rw-r--r--app/common.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/common.php b/app/common.php
index 7f66c05e..b8f5ccd2 100644
--- a/app/common.php
+++ b/app/common.php
@@ -126,6 +126,10 @@ if (ENABLE_URL_REWRITE) {
$container['router']->addRoute('l/:project_id', 'listing', 'show', array('project_id'));
$container['router']->addRoute('list/:project_id/:search', 'listing', 'show', array('project_id', 'search'));
+ // Gantt routes
+ $container['router']->addRoute('gantt/:project_id', 'gantt', 'project', array('project_id'));
+ $container['router']->addRoute('gantt/:project_id/sort/:sorting', 'gantt', 'project', array('project_id', 'sorting'));
+
// Subtask routes
$container['router']->addRoute('project/:project_id/task/:task_id/subtask/create', 'subtask', 'create', array('project_id', 'task_id'));
$container['router']->addRoute('project/:project_id/task/:task_id/subtask/:subtask_id/remove', 'subtask', 'confirm', array('project_id', 'task_id', 'subtask_id'));