Guest User

Untitled

a guest
Jun 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. package MyMojoliciousApp;
  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. $r->route('/question')->to('example#question');
  16. $r->route('/answer')->to('example#answer');
  17. }
  18.  
  19. 1;
Add Comment
Please, Sign In to add comment