Skip to content

Instantly share code, notes, and snippets.

@jberger
Created August 12, 2016 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jberger/6f5865cbc79e17b11f7b84e1bdf6efe9 to your computer and use it in GitHub Desktop.
Save jberger/6f5865cbc79e17b11f7b84e1bdf6efe9 to your computer and use it in GitHub Desktop.
use Mojolicious::Lite;
get '/foo/bar';
get '/fo/obar';
get '/foo/:bar';
app->start;
__END__
$ perl routes.pl routes
/foo/bar GET foobar
/fo/obar GET foobar
/foo/:bar GET foobar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment