NAME
Mojolicious::Plugin::YamlRoutes - Generates routes from a yaml file
SYNOPSIS
$self->plugin(YamlRoutes => { directory => 'config/routes/' } );
$self->plugin(YamlRoutes => { file => 'routes.yaml'} );
$self->plugin(YamlRoutes);
DESCRIPTION
Mojolicious::Plugin::YamlRoutes Generate routes in Mojoliciouse based a yaml file
By default all http methods are GET can be force in the var 'via'.
routes: Example: Tester: route: /tester Example::Tester: Tester: route: /example/teste Post: route: /tester/post via: POST Any: route: /tester/any via: ANY
METHODS
Mojolicious::Plugin::YamlRoutes inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register(Mojolicious->new);
Register plugin in Mojolicious application.