mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
Merge pull request #5274 from rubencm/ticket/14285
[ticket/14285] Move downloads to controller
This commit is contained in:
@@ -35,3 +35,7 @@ phpbb_report_routing:
|
||||
phpbb_ucp_routing:
|
||||
resource: ucp.yml
|
||||
prefix: /user
|
||||
|
||||
phpbb_storage_routing:
|
||||
resource: storage.yml
|
||||
prefix: /download
|
||||
|
11
phpBB/config/default/routing/storage.yml
Normal file
11
phpBB/config/default/routing/storage.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
phpbb_storage_avatar:
|
||||
path: /avatar/{file}
|
||||
defaults:
|
||||
_controller: storage.controller.avatar:handle
|
||||
|
||||
phpbb_storage_attachment:
|
||||
path: /attachment/{file}
|
||||
defaults:
|
||||
_controller: storage.controller.attachment:handle
|
||||
requirements:
|
||||
id: \d+
|
Reference in New Issue
Block a user