jcrosby / cloudkit

An Open Web JSON Appliance

grempe (author)
Thu Jun 11 18:01:37 -0700 2009
jcrosby (committer)
Wed Jul 29 12:47:36 -0700 2009
cloudkit / examples / 4.ru
100644 6 lines (5 sloc) 0.25 kb
1
2
3
4
5
6
$:.unshift File.expand_path(File.dirname(__FILE__)) + '/../lib'
require 'cloudkit'
use CloudKit::OAuthFilter
use CloudKit::Service, :collections => [:notes]
run lambda{|env| [200, {'Content-Type' => 'text/html', 'Content-Length' => '5'}, ['HELLO']]}