Commit | Line | Data |
eb99eb06 |
1 | package ESITest::Controller::Root; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | use parent 'Catalyst::Controller'; |
6 | |
7 | __PACKAGE__->config->{namespace} = ''; |
8 | |
6cb4b001 |
9 | sub index :Path Args(0) { |
eb99eb06 |
10 | my ( $self, $c ) = @_; |
11 | } |
12 | |
6cb4b001 |
13 | sub base : Chained('/') PathPart('') CaptureArgs(0) { |
14 | my ( $self, $c ) = @_; |
15 | } |
16 | |
17 | sub time_include : Chained('base') PathPart('time') Args(0) { |
eb99eb06 |
18 | my ( $self, $c ) = @_; |
19 | $c->stash->{current_time} = localtime(); |
20 | } |
21 | |
22 | sub end : ActionClass('RenderView') {} |
23 | |
24 | 1; |