mirror of
https://github.com/lostisland/faraday.git
synced 2025-11-29 00:03:35 -05:00
18 lines
236 B
Ruby
18 lines
236 B
Ruby
require 'rubygems'
|
|
require 'sinatra'
|
|
|
|
get '/hello_world' do
|
|
'hello world'
|
|
end
|
|
|
|
get '/json' do
|
|
"[1,2,3]"
|
|
end
|
|
|
|
get '/params' do
|
|
%(params[:a] == #{params[:a]})
|
|
end
|
|
|
|
get "/headers" do
|
|
%(env[HTTP_X_TEST] == #{env["HTTP_X_TEST"]})
|
|
end |