Sha256: 706dec7aa3163a3c47003837e24821ff28438d1dbb18fc9aedb829fe2f4e8d20
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 Bytes
Contents
#!/usr/bin/env ruby $:<< '../lib' << 'lib' require 'goliath' class RandomAPI2 < Goliath::API use Goliath::Rack::Params use Goliath::Rack::Validation::Param, :key => 'user' def response(env) [200, {}, "Hello 2!"] end end class Router < Goliath::API map '/', RandomAPI2 end # class PlainApi < Goliath::API # use Goliath::Rack::Params # use Goliath::Rack::Validation::Param, :key => 'user' # def response(env) # [200, {}, "Hello 2!"] # end # end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
goliath-1.0.4 | examples/clone.rb |
goliath-1.0.2 | examples/clone.rb |
goliath-1.0.1 | examples/clone.rb |
goliath-1.0.0 | examples/clone.rb |
goliath-1.0.0.beta.1 | examples/clone.rb |