You are here

opigno_notification.routing.yml in Opigno notifications 3.x

Same filename and directory in other branches
  1. 8 opigno_notification.routing.yml

File

opigno_notification.routing.yml
View source
  1. entity.opigno_notification.canonical:
  2. path: '/notifications/{opigno_notification}'
  3. defaults:
  4. _entity_view: 'opigno_notification'
  5. _title: 'Notification'
  6. requirements:
  7. _entity_access: 'opigno_notification.view'
  8. entity.opigno_notification.collection:
  9. path: '/notifications/list'
  10. defaults:
  11. _entity_list: 'opigno_notification'
  12. _title: 'Notification List'
  13. requirements:
  14. _permission: 'administer opigno notification'
  15. opigno_notification.mark_read_all:
  16. path: '/ajax/notifications/mark-read-all'
  17. defaults:
  18. _controller: '\Drupal\opigno_notification\Controller\OpignoNotificationController::markReadAll'
  19. requirements:
  20. _permission: 'access content'
  21. opigno_notification.get_messages:
  22. path: '/ajax/notifications/get-messages'
  23. defaults:
  24. _controller: '\Drupal\opigno_notification\Controller\OpignoNotificationController::getMessages'
  25. requirements:
  26. _permission: 'access content'