From 5130e7e70ff546c414db1c7a9eaf40ea912af7e3 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Thu, 2 Dec 2021 21:22:08 +0000 Subject: [PATCH] [COMPONENT][Attachment] Update routes to use /object/ namespace --- components/Attachment/Attachment.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Attachment/Attachment.php b/components/Attachment/Attachment.php index 06110778e2..2b0d9a0bcc 100644 --- a/components/Attachment/Attachment.php +++ b/components/Attachment/Attachment.php @@ -30,10 +30,10 @@ class Attachment extends Component { public function onAddRoute(RouteLoader $r): bool { - $r->connect('attachment_show', '/attachment/{id<\d+>}', [C\Attachment::class, 'attachment_show']); - $r->connect('attachment_view', '/attachment/{id<\d+>}/view', [C\Attachment::class, 'attachment_view']); - $r->connect('attachment_download', '/attachment/{id<\d+>}/download', [C\Attachment::class, 'attachment_download']); - $r->connect('attachment_thumbnail', '/attachment/{id<\d+>}/thumbnail/{size}', [C\Attachment::class, 'attachment_thumbnail']); + $r->connect('attachment_show', '/object/attachment/{id<\d+>}', [C\Attachment::class, 'attachment_show']); + $r->connect('attachment_view', '/object/attachment/{id<\d+>}/view', [C\Attachment::class, 'attachment_view']); + $r->connect('attachment_download', '/object/attachment/{id<\d+>}/download', [C\Attachment::class, 'attachment_download']); + $r->connect('attachment_thumbnail', '/object/attachment/{id<\d+>}/thumbnail/{size}', [C\Attachment::class, 'attachment_thumbnail']); return Event::next; } }