You are here

cdn.routing.yml in CDN 8.3

File

cdn.routing.yml
View source
  1. # The /cdn/farfuture route has been deprecated and is rewritten
  2. # in CdnFarfuturePathProcessor.
  3. cdn.farfuture.download:
  4. path: '/cdn/farfuture/{security_token}/{mtime}'
  5. defaults:
  6. _controller: cdn.controller.farfuture:download
  7. _disable_route_normalizer: TRUE
  8. requirements:
  9. _access: 'TRUE'
  10. mtime: \d+
  11. cdn.farfuture_scheme.download:
  12. path: '/cdn/ff/{security_token}/{mtime}/{scheme}'
  13. defaults:
  14. _controller: cdn.controller.farfuture:downloadByScheme
  15. # Ensure the redirect module does not redirect to add a language prefix.
  16. # @see \Drupal\redirect\EventSubscriber\RouteNormalizerRequestSubscriber
  17. # @todo Update this comment when https://www.drupal.org/project/drupal/issues/2641118 lands.
  18. _disable_route_normalizer: TRUE
  19. requirements:
  20. _access: 'TRUE'
  21. mtime: \d+
  22. scheme: '(:\w+:)|([a-zA-Z0-9+.-]+)'