You are here

favorites.routing.yml in Favorites 8.2

File

favorites.routing.yml
View source
  1. favorites.add:
  2. path: '/favorites/js/add'
  3. defaults:
  4. _controller: '\Drupal\favorites\Controller\MyFavController::addFavJS'
  5. _title: 'Add favorite via js'
  6. requirements:
  7. _permission: 'manage favorites'
  8. favorites.remove:
  9. path: '/favorites/remove/{fid}'
  10. defaults:
  11. _controller: '\Drupal\favorites\Controller\MyFavController::remove'
  12. _title: 'Remove Favorite'
  13. requirements:
  14. _permission: 'manage favorites'