summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/system_test/system_test.routing.yml
diff options
context:
space:
mode:
authoreffulgentsia2015-10-05 22:09:09 (GMT)
committereffulgentsia2015-10-05 22:09:09 (GMT)
commit866be5fb95ab375c10d2e9884d628b44ac228296 (patch)
tree8fba56e0c33d46a5da232ce3bf3d249f506fcc2a /core/modules/system/tests/modules/system_test/system_test.routing.yml
parentd5c827e43c567c771c4d91aa0afda87bdbebf670 (diff)
Issue #2476407 by borisson_, hussainweb, znerol, Fabianx, Wim Leers, dawehner, Crell, Berdir: Use CacheableResponseInterface to determine which responses should be cached
Diffstat (limited to 'core/modules/system/tests/modules/system_test/system_test.routing.yml')
-rw-r--r--core/modules/system/tests/modules/system_test/system_test.routing.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/modules/system/tests/modules/system_test/system_test.routing.yml b/core/modules/system/tests/modules/system_test/system_test.routing.yml
index ecb9921..94a1bef 100644
--- a/core/modules/system/tests/modules/system_test/system_test.routing.yml
+++ b/core/modules/system/tests/modules/system_test/system_test.routing.yml
@@ -129,3 +129,17 @@ system_test.permission_dependent_route_access:
_controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
requirements:
_permission: 'pet llamas'
+
+system_test.respond_response:
+ path: '/system-test/respond-reponse'
+ defaults:
+ _controller: '\Drupal\system_test\Controller\SystemTestController::respondWithReponse'
+ requirements:
+ _access: 'TRUE'
+
+system_test.respond_cacheable_response:
+ path: '/system-test/respond-cacheable-reponse'
+ defaults:
+ _controller: '\Drupal\system_test\Controller\SystemTestController::respondWithCacheableReponse'
+ requirements:
+ _access: 'TRUE'