From 440a2cbaa50bcaeed335a606c8074b508c938eec Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 15 Feb 2013 10:58:12 +0100 Subject: [PATCH] Moved routing to YML, allow correct priorities between modules --- _config.php | 7 ------- _config/routes.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 _config/routes.yml diff --git a/_config.php b/_config.php index 4dbb000..13c1b24 100755 --- a/_config.php +++ b/_config.php @@ -16,13 +16,6 @@ if(!defined('DOCSVIEWER_DIR')) { define('DOCSVIEWER_DIR', array_pop($dir)); } - -// default location for documentation. If you want this under a custom url -// define your own rule in your mysite/_config.php -Director::addRules(100, array( - 'dev/docs' => 'DocumentationViewer' -)); - // define filetypes to ignore DocumentationService::set_ignored_files(array( '.', '..', '.DS_Store', diff --git a/_config/routes.yml b/_config/routes.yml new file mode 100644 index 0000000..d4fbbd5 --- /dev/null +++ b/_config/routes.yml @@ -0,0 +1,8 @@ +--- +Name: docs +After: framework/routes#coreroutes +--- +Director: + rules: + 'dev/docs': 'DocumentationViewer' + 'DocumentationOpenSearchController//$Action': 'DocumentationOpenSearchController'