Updated with Sinatra and Post function