You are here

filebrowser.routing.yml in Filebrowser 8

Same filename and directory in other branches
  1. 8.2 filebrowser.routing.yml
  2. 3.x filebrowser.routing.yml

File

filebrowser.routing.yml
View source
  1. filebrowser.download:
  2. #TODO if {fid} is proper wildcard
  3. path: '/filebrowser/download/{fid}'
  4. defaults:
  5. _controller: '\Drupal\filebrowser\Controller\FilebrowserController::pageDownload'
  6. _title: 'Filebrowser'
  7. requirements:
  8. _permission: 'FILEBROWSER_DOWNLOAD'
  9. filebrowser.delete:
  10. path: '/filebrowser/delete/{fid}'
  11. defaults:
  12. _controler: '\Drupal\filebrowser\Controller\FilebrowserController::pageDelete'
  13. _title: 'Filebrowser'
  14. reguiremements:
  15. _permission: 'FILEBROWSER_DELETE_FILE'
  16. filebrowser.metadata:
  17. path: '/filebrowser/metadata/{fid}'
  18. defaults:
  19. _form: '\Drupal\filebrowser\Form\FilebrowserFormMetaData'
  20. _title: 'Manage metada of your listing'
  21. requirements:
  22. #TODO set correct permission
  23. _permission: 'FILEBROWSER_DELETE_FILE'
  24. filebrowser.thumbnails:
  25. #TODO if {fid} is proper wildcard
  26. path: '/filebrowser/thumbnails/'
  27. defaults:
  28. _controler: '\Drupal\filebrowser\Controller\FilebrowserController::updateThumbnails'
  29. requirements:
  30. #TODO set correct permission
  31. _permission: 'FILEBROWSER_DELETE_FILE'
  32. # ----- routes for Filebrowser entity ---
  33. filebrowser.view:
  34. path: '/filebrowser/{filebrowser}'
  35. defaults:
  36. _entity_view: 'filebrowser'
  37. _title: 'Foo Bar Content'
  38. requirements:
  39. _permission: 'view_filebrowser'
  40. filebrowser.list:
  41. path: '/filebrowser/list'
  42. defaults:
  43. _entity_list: 'filebrowser'
  44. _title: 'Foo Bar Content List'
  45. requirements:
  46. _permission: 'view_filebrowser'
  47. filebrowser.add:
  48. path: '/filebrowser/add'
  49. defaults:
  50. _entity_form: filebrowser.add
  51. _title: 'Add foo bar Content'
  52. requirements:
  53. _permission: 'add_filebrowser'
  54. filebrowser.edit:
  55. path: '/filebrowser/{filebrowser}/edit'
  56. defaults:
  57. _entity_form: filebrowser.edit
  58. _title: 'Edit foo bar content'
  59. requirements:
  60. _permission: 'edit_filebrowser'
  61. filebrowser.delete:
  62. path: '/filebrowser/{filebrowser}/delete'
  63. defaults:
  64. _entity_form: filebrowser.delete
  65. _title: 'Delete foo bar Content '
  66. requirements:
  67. _permission: 'delete_filebrowser'
  68. filebrowser.settings:
  69. path: 'admin/structure/filebrowser'
  70. defaults:
  71. _form: '\Drupal\filebrowser\Entity\Form\FilebrowserSettingsForm'
  72. _title: 'Filebrowser Settings'
  73. requirements:
  74. _permission: 'admin_filebrowser'