Jesse Luehrs > OX > OX::Role    Annotate this POD   View/Report
Bugs Module Version: 0.13   Source     OX::Role - declare roles
for your OX applications   version 0.13     package
MyApp::Role::Auth;   use OX::Role;    has auth => (       is  =>
'ro',       isa => 'MyApp::Auth',    router as {       route
'/auth/login'  => 'auth.login';       route '/auth/logout' =>
'auth.logout';    package MyApp;   use OX;    with
'MyApp::Role::Auth';    has root => (       is  => 'ro',
isa => 'MyApp::Controller::Root',    router as {       route '/'
=> 'root.index';   This module allows you to define roles to be
applied to your OX applications. OX roles can define any part of
the application that an OX class can, except for middleware and
declaring a pre-built router or router class. When you consume
the role, all of the services, routes, and mounts will be
composed into the application class.  During composition,
conflicts between mounts and routes will be checked for, similar
to how roles normally detect conflicts b