Handle a controller where the namespace is the empty string nicely.
[catagits/CatalystX-Routes.git] / t / lib / MyApp1 / Controller / Root.pm
CommitLineData
7bdb05c2 1package MyApp1::Controller::Root;
2
3use Moose;
4use CatalystX::Routes;
5
6BEGIN { extends 'Catalyst::Controller' }
7
8__PACKAGE__->config()->{namespace} = q{};
9
10our %REQ;
11
12get q{} => args 0 => sub { $REQ{root}++ };
13
14get q{foo.txt} => args 0 => sub { $REQ{'foo.txt'}++ };
15
161;