feat: add basic skeleton app
This commit is contained in:
1 parent
5596014f8d
commit
f84c9dcbb4
2 files changed
+31
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package Urupam::App;
|
||||
|
||||
use Mojo::Base 'Mojolicious';
|
||||
use Moose;
|
||||
|
||||
sub startup {
|
||||
my $self = shift;
|
||||
|
||||
my $r = $self->routes;
|
||||
$r->get('/')->to(
|
||||
cb => sub {
|
||||
my $c = shift;
|
||||
$c->render( text => 'Hello from urupam!' );
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Reference in new issue
Block a user