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