Sha256: 787b5fc5d3ff30581d35867d140891e79764939904c60b5b2f6ad5d9594ef38c
Contents?: true
Size: 293 Bytes
Versions: 1
Compression:
Stored size: 293 Bytes
Contents
$:.push(File.dirname(__FILE__) + "/../lib") # Just run `ruby examples/basic_auth.rb` and then use something like # `curl -u admin:test http://localhost:2345/api/v1/`. require "rack/api" class Sample < Rack::API get "/" do {:message => "Hello World, from Rack!"} end end run Sample
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-api-1.0.1 | examples/config.ru |