Can't locate object method "over" via package "Mojolicious::Routes::Route"
When do carton exec hypnotoad script/lutim
, the following error occurred.
Can't locate object method "over" via package "Mojolicious::Routes::Route"
- OS: Debian
11.3
- Perl:
v5.32.1
This issue is fixed with the following patch.
--- ../../lutim.orig/lib/Lutim.pm 2022-05-08 23:03:57.723187597 -0700
+++ Lutim.pm 2021-12-13 14:41:01.505448020 -0800
@@ -291,7 +291,7 @@
});
$r->get('/')->
- over('authorized')->
+ requires('authorized')->
to('Image#home')->
name('index');
$r->get('/')->
@@ -351,7 +351,7 @@
})->name('gallery');
$r->get('/myfiles')->
- over('authorized')->
+ requires('authorized')->
name('myfiles');
$r->get('/myfiles')->
to('Authent#index');
@@ -369,28 +369,28 @@
->name('random');
$r->post('/')->
- over('authorized')->
+ requires('authorized')->
to('Image#add')->
name('add');
$r->post('/')->
to('Authent#index');
$r->get('/d/:short/:token')->
- over('authorized')->
+ requires('authorized')->
to('Image#delete')->
name('delete');
$r->get('/d/:short/:token')->
to('Authent#index');
$r->post('/m/:short/:token')->
- over('authorized')->
+ requires('authorized')->
to('Image#modify')->
name('modify');
$r->post('/m/:short/:token')->
to('Authent#index');
$r->post('/c')->
- over('authorized')->
+ requires('authorized')->
to('Image#get_counter')->
name('counter');
$r->post('/c')->
Edited by Koichi MATSUMOTO