Sha256: bb86670615cd618643a2362ea5575fc08bcf865a4194a6d17876a5098b637b8d
Contents?: true
Size: 314 Bytes
Versions: 4
Compression:
Stored size: 314 Bytes
Contents
$:.push(File.dirname(__FILE__) + "/../lib") # Just run `ruby examples/without_version_and_prefix.rb` and then use something like # `curl http://localhost:2345/`. require "rack/api" Rack::API.app do get "/" do {:message => "Hello, awesome API!"} end end Rack::Handler::Thin.run Rack::API, :Port => 2345
Version data entries
4 entries across 4 versions & 1 rubygems