Support Mojolicious >= 9.0
Change-Id: Icf33b0060119d06d7eb1747abee8b59556d6d56c
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index e7be952..42fa51c 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -324,7 +324,7 @@
# API proxy route
$r->any('/api/v#apiv' => [apiv => ['1.0']])->name('proxy')->to('Proxy#pass');
- $r->any('/api/v#apiv/*path' => [apiv => ['1.0']])->to('Proxy#pass');
+ $r->any('/api/v#apiv/*api_path' => [apiv => ['1.0']])->to('Proxy#pass');
# Match route
# Corpus route
diff --git a/lib/Kalamar/Controller/Proxy.pm b/lib/Kalamar/Controller/Proxy.pm
index 65153c7..675a06a 100644
--- a/lib/Kalamar/Controller/Proxy.pm
+++ b/lib/Kalamar/Controller/Proxy.pm
@@ -6,7 +6,7 @@
my $c = shift;
my $apiv = $c->stash('apiv');
- my $path = $c->stash('path') // '';
+ my $path = $c->stash('api_path') // '';
# Get the original request
my $req = $c->req;