Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Adds some of the missing HTTP methods to the Sinatra router. [no longer maintained, see sinatra-rest-addons]
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/sinatra
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
sinatra-additional-routes.gemspec

README.rdoc

sinatra-additional-routes

Adds some of the missing HTTP methods to the Sinatra router. Currently, adds only the OPTIONS method.

Usage

require 'sinatra/additional_routes'

class MyAPP < Sinatra::Base 
  register Sinatra::AdditionalRoutes

  options '/path' do
    "response for: OPTIONS /path"
  end
end

Copyright

Copyright © 2009 Cyril Rohr. See LICENSE for details.

Something went wrong with that request. Please try again.