From 6b7da155640225e0b1ce4fe962449c03fd20edd0 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 28 Feb 2014 12:37:04 +0200 Subject: [PATCH] Reorder routes --- lib/Plack/App/Gruntmaster.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index f3da571..eae9a06 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -65,10 +65,9 @@ BEGIN{ my ($thing, $ct, $fs) = @_; $ct //= '', $fs //= ''; my $pkg = ucfirst $thing; - get qr,$ct/$thing/, => $pkg; - get qr,$ct/$thing/$word$fs, => "${pkg}::Entry"; - + get qr,$ct/$thing/, => $pkg; get qr,$ct/$thing/read, => "${pkg}::Read"; + get qr,$ct/$thing/$word$fs, => "${pkg}::Entry"; # post qr,$ct/$thing/$word/create, => "${pkg}::Entry::Create"; get qr,$ct/$thing/$word/read, => "${pkg}::Entry::Read"; # post qr,$ct/$thing/$word/update, => "${pkg}::Entry::Update"; -- 2.30.2