Created
January 24, 2016 21:09
-
-
Save bridgethillyer/b2529b035b693674c5c5 to your computer and use it in GitHub Desktop.
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 'rubygems' | |
require 'sinatra' | |
require 'JSON' | |
post '/bridget-fn' do | |
request.body.rewind | |
b = request.body.read | |
stuff = JSON.parse(b) | |
stuff["n"] = stuff["n"] + 1 | |
JSON.generate(stuff) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment