Sha256: 8f5ad066aaaba54f3bbc968325677cdbe16f28bce21fdb403068ecc7b1f59f03
Contents?: true
Size: 256 Bytes
Versions: 24
Compression:
Stored size: 256 Bytes
Contents
# Run with: ruby hello_goliath.rb -sv -e production require 'goliath' class Hello < Goliath::API # default to JSON output, allow Yaml as secondary use Goliath::Rack::Render, ['json', 'yaml'] def response(env) [200, {}, "Hello World"] end end
Version data entries
24 entries across 24 versions & 1 rubygems