Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created May 22, 2012 07:23
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 marcusramberg/2767319 to your computer and use it in GitHub Desktop.
Save marcusramberg/2767319 to your computer and use it in GitHub Desktop.
 ~/ perl -MData::Dumper -Mojo -E 'a("/" => sub { warn Data::Dumper::Dumper(shift->req->json) })->start' daemon
Server available at http://127.0.0.1:3000.
curl -d '{ "boobs":"ok" }' http://localhost:3000/
$VAR1 = {
'boobs' => 'ok'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment