Initial commit

This commit is contained in:
2026-07-27 23:35:17 -07:00
commit a9dcb41ea3
9 changed files with 113 additions and 0 deletions

20
lib/MojoApp.pm Normal file
View File

@@ -0,0 +1,20 @@
package MojoApp;
use Mojo::Base 'Mojolicious', -signatures;
# This method will run once at server start
sub startup ($self) {
# Load configuration from config file
my $config = $self->plugin('NotYAMLConfig');
# Configure the application
$self->secrets($config->{secrets});
# Router
my $r = $self->routes;
# Normal route to controller
$r->get('/')->to('Example#welcome');
}
1;