Closed LLFourn closed 10 years ago
If you do
namespace '/user' => sub {
you get '//user' as the route
raisin --routes api.pl GET //user GET //user/all POST //user GET //user/{id}
PS the example also has a mistake:
sub { get sub { my $params = shift; %USERS{ $params->{id} }; }; };
should be $USERS
Thank you for feedback. Fixed.
If you do
you get '//user' as the route
PS the example also has a mistake:
should be $USERS