silverstripe-framework/_config/routes.yml
Ingo Schommer 957469d770 API Removed auto-routing of controller name
Use custom routing rules to achieve this effect (see changelog)
2013-02-18 14:29:47 +01:00

38 lines
859 B
YAML

---
Name: rootroutes
Before: '*'
---
Director:
rules:
'': 'Controller'
---
Name: coreroutes
Before: '*'
After:
- '#rootroutes'
- '#modelascontrollerroutes'
---
Director:
rules:
'Security//$Action/$ID/$OtherID': 'Security'
'api/v1/live': 'VersionedRestfulServer'
'api/v1': 'RestfulServer'
'soap/v1': 'SOAPModelAccess'
'dev': 'DevelopmentAdmin'
'interactive': 'SapphireREPL'
'InstallerTest//$Action/$ID/$OtherID': 'InstallerTest'
'JSTestRunner//$Action/$ID/$OtherID': 'JSTestRunner'
'SapphireInfo//$Action/$ID/$OtherID': 'SapphireInfo'
'SapphireREPL//$Action/$ID/$OtherID': 'SapphireREPL'
---
Name: adminroutes
Before: '*'
After:
- '#rootroutes'
- '#coreroutes'
- '#modelascontrollerroutes'
---
Director:
rules:
'admin': 'AdminRootController'
'dev/buildcache/$Action': 'RebuildStaticCacheTask'