my $r = $self->routes(); $r->route('/foo')->to(namespace => 'Some::Module', action => 'someSub'); $r->route('/bar')->to(namespace => 'Another::Module', action => 'anotherSub');