You are here

pwa.routing.yml in Progressive Web App 8

Same filename and directory in other branches
  1. 2.x pwa.routing.yml

File

pwa.routing.yml
View source
  1. pwa.admin_index:
  2. path: '/admin/config/pwa'
  3. defaults:
  4. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  5. _title: 'Progressive web app'
  6. requirements:
  7. _permission: 'access administration pages'
  8. pwa.manifest:
  9. path: /manifest.json
  10. defaults:
  11. _controller: '\Drupal\pwa\Controller\PWAController::pwa_manifest'
  12. requirements:
  13. _permission: 'access content'
  14. pwa.serviceworker_file_data:
  15. path: /serviceworker-pwa
  16. defaults:
  17. _controller: '\Drupal\pwa\Controller\PWAController::pwa_serviceworker_file_data'
  18. _disable_route_normalizer: 'TRUE'
  19. requirements:
  20. _permission: 'access content'
  21. pwa.offline_page:
  22. path: /offline
  23. defaults:
  24. _controller: '\Drupal\pwa\Controller\PWAController::pwa_offline_page'
  25. requirements:
  26. _permission: 'access content'
  27. pwa.module_active:
  28. path: /pwa/module-active
  29. defaults:
  30. _controller: '\Drupal\pwa\Controller\PWAController::pwa_module_active_page'
  31. requirements:
  32. _permission: 'access content'
  33. pwa.config:
  34. path: '/admin/config/pwa/settings'
  35. defaults:
  36. _form: '\Drupal\pwa\Form\ConfigurationForm'
  37. _title: 'Progressive Web Application'
  38. requirements:
  39. _permission: 'administer pwa'