Commit | Line | Data |
c4057ce2 |
1 | package CatalystX::Routes::Role::Class; |
2 | |
3 | use Moose::Role; |
565ade29 |
4 | use namespace::autoclean; |
c4057ce2 |
5 | |
6 | has _routes => ( |
7 | traits => ['Hash'], |
8 | isa => 'HashRef[ArrayRef]', |
9 | handles => { |
10 | add_route => 'set', |
11 | get_route => 'get', |
12 | route_names => 'keys', |
13 | }, |
14 | ); |
15 | |
73bef299 |
16 | has _chain_points => ( |
17 | traits => ['Hash'], |
18 | isa => 'HashRef[ArrayRef]', |
19 | handles => { |
20 | add_chain_point => 'set', |
21 | get_chain_point => 'get', |
22 | chain_point_names => 'keys', |
23 | }, |
24 | ); |
25 | |
c4057ce2 |
26 | 1; |