Bugzilla – Attachment 128676 Details for
Bug 29498
Remove usage of deprecated Mojolicious::Routes::Route::detour
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29498: Remove usage of deprecated Mojolicious::Routes::Route::detour
Bug-29498-Remove-usage-of-deprecated-MojoliciousRo.patch (text/plain), 1.53 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-12-17 15:04:25 UTC
(
hide
)
Description:
Bug 29498: Remove usage of deprecated Mojolicious::Routes::Route::detour
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-12-17 15:04:25 UTC
Size:
1.53 KB
patch
obsolete
>From ce52da4fdbf9190775f633aa52438409ef397e56 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 16 Nov 2021 15:31:02 +0000 >Subject: [PATCH] Bug 29498: Remove usage of deprecated > Mojolicious::Routes::Route::detour >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Mojolicious::Routes::Route::detour was deprecated in Mojolicious 8.67 >and removed in Mojolicious 9 > >It was used in Koha::App::Plugin::RESTV1 to connect the "REST API" >Mojolicious app to the other Mojolicious apps (Koha::App::Intranet and >Koha::App::Opac), so it's only a problem when running Koha as a >Mojolicious app. > >This patch makes use of the "partial" attribute instead, which does the >same thing. > >Test plan: >1. Run `morbo bin/intranet` >2. Point your browser to what morbo says (should be localhost:3000) >3. Log in, and go to Administration » Libraries. This table uses the > REST API, so if you see data in it, that means the API (and the > patch) works > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/App/Plugin/RESTV1.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/App/Plugin/RESTV1.pm b/Koha/App/Plugin/RESTV1.pm >index 7ff62beecf..883b989cbd 100644 >--- a/Koha/App/Plugin/RESTV1.pm >+++ b/Koha/App/Plugin/RESTV1.pm >@@ -26,7 +26,7 @@ use Koha::REST::V1; > sub register { > my ($self, $app) = @_; > >- $app->routes->any('/api')->detour(app => Koha::REST::V1->new); >+ $app->routes->any('/api')->partial(1)->to(app => Koha::REST::V1->new); > } > > 1; >-- >2.32.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29498
:
127705
| 128676