Initial commit

This commit is contained in:
2026-07-30 17:26:40 -07:00
commit 914c0374e4
11 changed files with 203 additions and 0 deletions

20
mojo_app/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;