Created
November 19, 2012 22:23
-
-
Save moltar/4114439 to your computer and use it in GitHub Desktop.
catalyst chaining question
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package SW::Web::Controller::Manufacturer; | |
use Moose; | |
use namespace::autoclean; | |
BEGIN { extends 'Catalyst::Controller'; } | |
__PACKAGE__->config(namespace => 'm'); | |
sub create : Chained('/superuser') PathPart('m/create') Args(0) { | |
my ($self, $c) = @_; | |
$c->res->body('ok'); | |
return 1; | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment