From: Marius Gavrilescu Date: Fri, 28 Feb 2014 10:37:04 +0000 (+0200) Subject: Reorder routes X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=6b7da155640225e0b1ce4fe962449c03fd20edd0;p=plack-app-gruntmaster.git Reorder routes --- 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";