NAME
MojoX::FilterChain::Base - Base class for intercepting filter
SYNOPSIS
package MyApp::FilterChain::Routes;
use strict;
use warnings;
use base 'MojoX::FilterChain::Base';
use MojoX::FilterChain::Constants;
sub run {
my ( $self, $c ) = @_;
$c->app->routes->dispatch($c);
return $c->res->code ? LAST : NEXT;
}
1;
DESCRIPTION
MojoX::FilterChain::Base is a base class for intercepting filter
METHODS
MojoX::FilterChain::Base inherits all methods from Mojo::Base and implements the following the ones.
run
Method that is called during chain process.