mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
Moved routing to YML, allow correct priorities between modules
This commit is contained in:
parent
9cf85b0c19
commit
440a2cbaa5
@ -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',
|
||||
|
8
_config/routes.yml
Normal file
8
_config/routes.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
Name: docs
|
||||
After: framework/routes#coreroutes
|
||||
---
|
||||
Director:
|
||||
rules:
|
||||
'dev/docs': 'DocumentationViewer'
|
||||
'DocumentationOpenSearchController//$Action': 'DocumentationOpenSearchController'
|
Loading…
x
Reference in New Issue
Block a user