Created
April 8, 2016 15:26
-
-
Save phil8192/2df8e0bd0520d23527016cf2d27ca77c to your computer and use it in GitHub Desktop.
dummy webserver
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 'json' | |
post '/*' do | |
puts JSON.pretty_generate(JSON.parse(request.body.read)) | |
status 201 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment