ADD ConfirmationMiddleware exceptions for the dev routes

This commit is contained in:
Serge Latyntcev 2019-04-12 11:05:21 +12:00 committed by Robbie Averill
parent 40050e9ab4
commit c490c4e5a5

View File

@ -12,3 +12,14 @@ SilverStripe\Dev\DevelopmentAdmin:
controller: Silverstripe\EnvironmentCheck\Controllers\DevCheckController
links:
check: 'Run registered environment checks and display their status'
---
Name: environmentcheckroutes-dev_urls-confirmation-exceptions
After:
- 'dev_urls-confirmation-middleware'
---
SilverStripe\Core\Injector\Injector:
DevUrlsConfirmationMiddleware:
properties:
Bypasses:
- '%$SilverStripe\Control\Middleware\ConfirmationMiddleware\UrlPathStartsWith("dev/check")'