feat: add basic skeleton app
This commit is contained in:
19
lib/Urupam/App.pm
Normal file
19
lib/Urupam/App.pm
Normal file
@@ -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