You are here

rate.routing.yml in Rate 8

Same filename and directory in other branches
  1. 8.2 rate.routing.yml

File

rate.routing.yml
View source
  1. rate.admin_settings:
  2. path: '/admin/config/search/votingapi/rate'
  3. defaults:
  4. _title: 'Rate settings'
  5. _description: 'Management options for the Rate module.'
  6. _form: '\Drupal\rate\Form\RateSettingsForm'
  7. requirements:
  8. _permission: 'administer rate'
  9. rate.vote:
  10. path: '/rate/{entity_type_id}/{entity_id}/{vote_type_id}/{value}/{widget_type}'
  11. defaults:
  12. _controller: '\Drupal\rate\Controller\VoteController::vote'
  13. requirements:
  14. _permission: 'access content'
  15. rate.undo_vote:
  16. path: '/rate/undo/{entity_type_id}/{entity_id}/{widget_type}'
  17. defaults:
  18. _controller: 'Drupal\rate\Controller\VoteController::undoVote'
  19. requirements:
  20. _permission: 'access content'
  21. rate.results_page:
  22. path: '/node/{node}/rating'
  23. defaults:
  24. _title: 'Rate Voting results'
  25. _controller: '\Drupal\rate\Controller\ResultsController::results'
  26. requirements:
  27. _permission: 'view rate results page'