You are here

activity_creator.routing.yml in Open Social 8.9

modules/custom/activity_creator/activity_creator.routing.yml

File

modules/custom/activity_creator/activity_creator.routing.yml
View source
  1. activity_creator.notifications_controller_readNotificationCallback:
  2. path: '/ajax/notifications-mark-as-read'
  3. defaults:
  4. _controller: '\Drupal\activity_creator\Controller\NotificationsController::readNotificationCallback'
  5. _title: 'readNotifications'
  6. requirements:
  7. _user_is_logged_in: 'TRUE'
  8. # TODO js: 'nojs|ajax'
  9. activity_creator.stream.notifications:
  10. path: '/activities/streams/notifications'
  11. defaults:
  12. _controller: '\Drupal\activity_creator\Controller\NotificationsController::getNotificationListCallback'
  13. requirements:
  14. _permission: 'access content'