Sha256: e3a96b140c619c50c1647a68dc3cc7f317d29e41b0ee69acd74c815f6cd35ff9

Contents?: true

Size: 834 Bytes

Versions: 1

Compression:

Stored size: 834 Bytes

Contents

# Galago Router

A rack router.

## Installation

Add this line to your application's Gemfile:

    gem 'galago-router'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install galago-router

## Usage

```ruby
# config.ru
require 'galago/router'
require 'rack/lobster'

router = Galago::Router.new do
  get    '/lobsters',       to: Rack::Lobster.new
  post   '/lobsters',       to: Rack::Lobster.new
  patch  '/lobsters/:name', to: Rack::Lobster.new
  put    '/lobsters/:name', to: Rack::Lobster.new
  delete '/lobsters/:name', to: Rack::Lobster.new
end

run router
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
galago-router-0.0.2 README.md