Skip to content

Instantly share code, notes, and snippets.

Created July 31, 2014 17:09
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 anonymous/cc12b4f3ff5bec5d3833 to your computer and use it in GitHub Desktop.
Save anonymous/cc12b4f3ff5bec5d3833 to your computer and use it in GitHub Desktop.
$ perl -Ilib -Mojo -E 'under "/foo"; get "/bar"; post "/:baz" => {baz => ""}; app->start' routes -v
/foo B... * foo ^/foo
+/bar .... GET bar ^/bar ^/?(?:\.([^/]+))?$
+/:baz .... POST baz ^(?:/([^\/\.]+)?)? ^/?(?:\.([^/]+))?$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment