Devel::hdb::App::Base - Base class for Devel::hdb Application route modules
- $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.
Anthony Brummett <firstname.lastname@example.org>
Copyright 2014, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.