mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
e0b8f15171
When specifying a specific before rule and a wildcard after rule (or vice versa), the config system was filtering out any fragment from the list of fragments that matched the wildcard if it matched _any_ componenet of the specific rule, not all of them. Fixed, and added handling of two semi wild-card rules, where a rule with less wildcards wins over a rule with more. See http://open.silverstripe.org/ticket/7765 for more
35 lines
733 B
YAML
35 lines
733 B
YAML
---
|
|
Name: rootroutes
|
|
Before: '*'
|
|
---
|
|
Director:
|
|
rules:
|
|
'': 'Controller'
|
|
---
|
|
Name: coreroutes
|
|
Before: '*'
|
|
After:
|
|
- framework/routes#rootroutes
|
|
- cms/routes#modelascontrollerroutes
|
|
---
|
|
Director:
|
|
rules:
|
|
'Security//$Action/$ID/$OtherID': 'Security'
|
|
'$Controller//$Action/$ID/$OtherID': '*'
|
|
'api/v1/live': 'VersionedRestfulServer'
|
|
'api/v1': 'RestfulServer'
|
|
'soap/v1': 'SOAPModelAccess'
|
|
'dev': 'DevelopmentAdmin'
|
|
'interactive': 'SapphireREPL'
|
|
---
|
|
Name: adminroutes
|
|
Before: '*'
|
|
After:
|
|
- framework/routes#rootroutes
|
|
- framework/routes#coreroutes
|
|
- cms/routes#modelascontrollerroutes
|
|
---
|
|
Director:
|
|
rules:
|
|
'admin': 'AdminRootController'
|
|
'dev/buildcache/$Action': 'RebuildStaticCacheTask' |