NAME
Devel::hdb::App::Base - Base class for Devel::hdb Application route modules
Methods
- $class->add_route($method, $path, $cb)
-
Register a route to listen on. The callback $cb is called as
$class->$cb( $app, $env, [ @matches ]);
$app is the singleton Devel::hdb::App object. $env is the PSGI environment hash. If the passed-in $path is a regular expression with captures, then @matches is the list of captured strings.
AUTHOR
Anthony Brummett <brummett@cpan.org>
COPYRIGHT
Copyright 2014, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.