Sha256: 138e4d0727240e1840ac61019e083cb9cf76a6099d9822aa9828b673e94ecfd9
Contents?: true
Size: 421 Bytes
Versions: 19
Compression:
Stored size: 421 Bytes
Contents
require 'rubygems' require 'sinatra' get '/hello_world' do 'hello world' end get '/json' do "[1,2,3]" end post '/hello' do "hello #{params[:name]}" end get '/hello' do "hello #{params[:name]}" end post '/echo_name' do params[:name].inspect end put '/echo_name' do params[:name].inspect end delete '/delete_with_json' do %/{"deleted":true}/ end delete '/delete_with_params' do params[:deleted] end
Version data entries
19 entries across 19 versions & 3 rubygems