You are here

media_acquiadam.routing.yml in Media: Acquia DAM 8

File

media_acquiadam.routing.yml
View source
  1. media_acquiadam.config:
  2. path: '/admin/config/media/acquiadam'
  3. defaults:
  4. _form: '\Drupal\media_acquiadam\Form\AcquiadamConfig'
  5. _title: 'Acquia DAM Configuration'
  6. requirements:
  7. _permission: 'administer site configuration'
  8. entity.user.acquiadam_auth:
  9. path: '/user/{user}/acquiadam'
  10. defaults:
  11. _title: 'Acquia DAM'
  12. _controller: '\Drupal\media_acquiadam\Controller\OauthController::authPage'
  13. requirements:
  14. _user_is_logged_in: 'TRUE'
  15. user: \d+
  16. options:
  17. no_cache: 'TRUE'
  18. media_acquiadam.auth_start:
  19. path: '/acquiadam/authStart'
  20. defaults:
  21. _title: 'Redirect to DAM'
  22. _controller: '\Drupal\media_acquiadam\Controller\OauthController::authStart'
  23. requirements:
  24. _user_is_logged_in: 'TRUE'
  25. options:
  26. no_cache: 'TRUE'
  27. media_acquiadam.logout:
  28. path: '/acquiadam/logout'
  29. defaults:
  30. _title: 'DAM Logout'
  31. _controller: '\Drupal\media_acquiadam\Controller\OauthController::logout'
  32. requirements:
  33. _user_is_logged_in: 'TRUE'
  34. options:
  35. no_cache: 'TRUE'
  36. media_acquiadam.auth_finish:
  37. path: '/acquiadam/authFinish'
  38. defaults:
  39. _title: 'Authentication finalization'
  40. _controller: '\Drupal\media_acquiadam\Controller\OauthController::authFinish'
  41. requirements:
  42. _user_is_logged_in: 'TRUE'
  43. options:
  44. no_cache: 'TRUE'
  45. media_acquiadam.asset_details:
  46. path: 'acquiadam/asset/{assetId}'
  47. defaults:
  48. _controller: '\Drupal\media_acquiadam\Controller\AcquiadamController:assetDetailsPage'
  49. _title_callback: '\Drupal\media_acquiadam\Controller\AcquiadamController:assetDetailsPageTitle'
  50. requirements:
  51. _user_is_logged_in: 'TRUE'
  52. assetId: \d+