Sha256: 61c15b2c9f0fdbf1d64b6011085cc06eacb9e49ccdd73d56d7a623f2abcd319c
Contents?: true
Size: 306 Bytes
Versions: 5
Compression:
Stored size: 306 Bytes
Contents
#!/usr/bin/env ruby $:<< '../lib' << 'lib' require 'goliath' require 'test' class Router < Goliath::API get '/v1/app/:appid/binary/:key', RawFileApp put '/v1/app/:appid/binary/:key', RawFileApp not_found do run Proc.new { |env| [404, {"Content-Type" => "text/html"}, "not found"] } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
goliath-1.0.4 | examples/router.rb |
goliath-1.0.2 | examples/router.rb |
goliath-1.0.1 | examples/router.rb |
goliath-1.0.0 | examples/router.rb |
goliath-1.0.0.beta.1 | examples/router.rb |