like_and_dislike.routing.yml in Like & Dislike 8
File
like_and_dislike.routing.ymlView source
- like_and_dislike.admin_settings:
- path: '/admin/config/search/votingapi/like_and_dislike'
- defaults:
- _title: 'Like & Dislike settings'
- _description: 'Management options for the like and dislike buttons.'
- _form: '\Drupal\like_and_dislike\Form\SettingsForm'
- requirements:
- _permission: 'administer like and dislike'
- options:
- _admin_route: TRUE
-
- like_and_dislike.vote:
- path: '/like_and_dislike/{entity_type_id}/{vote_type_id}/{entity_id}'
- defaults:
- _controller: '\Drupal\like_and_dislike\Controller\VoteController::vote'
- requirements:
- _custom_access: '\Drupal\like_and_dislike\Controller\VoteController::voteAccess'
- options:
- _auth: [ 'basic_auth','cookie' ]