silverstripe-cms/_config/routes.yml

23 lines
649 B
YAML

---
Name: modelascontrollerroutes
After: '#coreroutes'
---
SilverStripe\Control\Director:
rules:
'': 'SilverStripe\CMS\Controllers\RootURLController'
'RemoveOrphanedPagesTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\RemoveOrphanedPagesTask'
'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SilverStripe\CMS\Tasks\SiteTreeMaintenanceTask'
---
Name: legacycmsroutes
---
SilverStripe\Control\Director:
rules:
'admin/cms': '->admin/pages'
---
Name: modelascontrollercatchallroute
After: '*'
---
SilverStripe\Control\Director:
rules:
'$URLSegment//$Action/$ID/$OtherID': 'SilverStripe\CMS\Controllers\ModelAsController'