You are here

opigno_notification.routing.yml in Opigno notifications 8

Same filename and directory in other branches
  1. 3.x 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.count:
  16. path: 'ajax/notifications/count'
  17. defaults:
  18. _controller: '\Drupal\opigno_notification\Controller\OpignoNotificationController::count'
  19. requirements:
  20. _permission: 'access content'
  21. opigno_notification.mark_read:
  22. path: 'ajax/notifications/mark-read/{opigno_notification}'
  23. defaults:
  24. _controller: '\Drupal\opigno_notification\Controller\OpignoNotificationController::markRead'
  25. requirements:
  26. _permission: 'access content'
  27. opigno_notification.mark_read_all:
  28. path: 'ajax/notifications/mark-read-all'
  29. defaults:
  30. _controller: '\Drupal\opigno_notification\Controller\OpignoNotificationController::markReadAll'
  31. requirements:
  32. _permission: 'access content'
  33. opigno_notification.get_messages:
  34. path: 'ajax/notifications/get-messages'
  35. defaults:
  36. _controller: '\Drupal\opigno_notification\Controller\OpignoNotificationController::getMessages'
  37. requirements:
  38. _permission: 'access content'