« blib/lib/Clustericious/Command/configpath.pm
↑ Summary
blib/lib/auto/share/dist/Clustericious/tmpl/1.08/client/lib/APPCLASS/Client.pm »
| 1 | % my $class = shift; | ||
| 2 | package <%= $class %>::Routes; | ||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | <%= $class %>::Routes - set up the routes for <%= $class %>. | ||
| 7 | |||
| 8 | =head1 DESCRIPTION | ||
| 9 | |||
| 10 | This package defines the API for <%= $class %>. | ||
| 11 | |||
| 12 | =head1 ROUTES | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | use strict; | ||
| 17 | use warnings; | ||
| 18 | |||
| 19 | use Clustericious::RouteBuilder; | ||
| 20 | |||
| 21 | =head2 get / | ||
| 22 | |||
| 23 | Get a welcome message. | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | get '/' => sub { | ||
| 28 | my($c) = @_; | ||
| 29 | $c->render(text => 'welcome to <%= $class %>'); | ||
| 30 | }; | ||
| 31 | |||
| 32 | 1; |