Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package MyMojoliciousApp;
- use strict;
- use warnings;
- use base 'Mojolicious';
- # This method will run once at server start
- sub startup {
- my $self = shift;
- # Routes
- my $r = $self->routes;
- $r->route('/question')->to('example#question');
- $r->route('/answer')->to('example#answer');
- }
- 1;
Add Comment
Please, Sign In to add comment