Sha256: ead5f53119e3ab691e2858d80f9ff7682d5a3b75381954b4373ef4a1c94e2b27
Contents?: true
Size: 251 Bytes
Versions: 2
Compression:
Stored size: 251 Bytes
Contents
require 'rubygems' require 'capcode' $:.unshift( "../lib" ) require 'capcode/render/json' module Capcode class Index < Route '/' def get render :json => { :hello => "Hello World", :values => [1, 2, 3] } end end end Capcode.run( )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capcode-render-json-0.2.0 | examples/render-json.rb |
capcode-render-json-0.1.0 | examples/render-json.rb |