projects
/
MojoFacets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Mojolicious application template
[MojoFacets.git]
/
lib
/
MojoFacets.pm
1
package MojoFacets;
2
3
use strict;
4
use warnings;
5
6
use base 'Mojolicious';
7
8
# This method will run once at server start
9
sub startup {
10
my $self = shift;
11
12
# Routes
13
my $r = $self->routes;
14
15
# Default route
16
$r->route('/:controller/:action/:id')->to('example#welcome', id => 1);
17
}
18
19
1;