Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: dd1b2d0361
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.358 kb
$:.push(File.dirname(__FILE__) + "/../lib")
# Just run `rackup -p 2345` and then use something like
# `curl -u admin:test http://localhost:2345/`.
#
# You can also use Thin. Just run it with `thin -R config.ru -p 2345 -DV start`.
#
require "rack/api"
class Sample < Rack::API
get "/" do
{:message => "Hello World, from Rack!"}
end
end
run Sample
Jump to Line
Something went wrong with that request. Please try again.