Sha256: 334359dd7b1a37eb10f767a9da687cb3d485938059dd0afc2b48007f9af35ebc
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
#!/usr/bin/env ruby $:<< '../lib' << 'lib' require 'goliath' class Valid < Goliath::API # reload code on every request in dev environment use ::Rack::Reloader, 0 if Goliath.dev? use Goliath::Rack::Params use Goliath::Rack::ValidationError use Goliath::Rack::Validation::RequiredParam, {:key => 'test'} def response(env) [200, {}, 'OK'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
goliath-0.9.0 | examples/valid.rb |