You are here

like_and_dislike.routing.yml in Like & Dislike 8

File

like_and_dislike.routing.yml
View source
  1. like_and_dislike.admin_settings:
  2. path: '/admin/config/search/votingapi/like_and_dislike'
  3. defaults:
  4. _title: 'Like & Dislike settings'
  5. _description: 'Management options for the like and dislike buttons.'
  6. _form: '\Drupal\like_and_dislike\Form\SettingsForm'
  7. requirements:
  8. _permission: 'administer like and dislike'
  9. options:
  10. _admin_route: TRUE
  11. like_and_dislike.vote:
  12. path: '/like_and_dislike/{entity_type_id}/{vote_type_id}/{entity_id}'
  13. defaults:
  14. _controller: '\Drupal\like_and_dislike\Controller\VoteController::vote'
  15. requirements:
  16. _custom_access: '\Drupal\like_and_dislike\Controller\VoteController::voteAccess'
  17. options:
  18. _auth: [ 'basic_auth','cookie' ]