projects
/
catagits/CatalystX-Routes.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Handle a controller where the namespace is the empty string nicely.
[catagits/CatalystX-Routes.git]
/
t
/
lib
/
MyApp1
/
Controller
/
Root.pm
1
package MyApp1::Controller::Root;
2
3
use Moose;
4
use CatalystX::Routes;
5
6
BEGIN { extends 'Catalyst::Controller' }
7
8
__PACKAGE__->config()->{namespace} = q{};
9
10
our %REQ;
11
12
get q{} => args 0 => sub { $REQ{root}++ };
13
14
get q{foo.txt} => args 0 => sub { $REQ{'foo.txt'}++ };
15
16
1;