Module: Sinatra

Defined in:
lib/rhosync/endpoints.rb

Overview

Defines Sinatra routes This is automatically registered if you are using the 'classic' style sinatra application. To use in a classic application:

require 'rubygems' require 'sinatra' require 'rhosync-rb'

get '/' do

'hello world'

end

For modular sinatra applications, you will need to register the module inside your class. To use in a modular application:

require 'sinatra/base' require 'rhosync-rb'

class Myapp < Sinatra::Base

register Sinatra::RhosyncEndpoints
get '/' do
  'hello world'
end

end

Defined Under Namespace

Modules: RhosyncEndpoints, RhosyncHelpers