Created
January 21, 2014 13:47
-
-
Save am/8540370 to your computer and use it in GitHub Desktop.
Sinatra server that mirrors the POST variables in .json format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/json' | |
post '/' do | |
json params | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment