README.md in galago-router-0.0.1 vs README.md in galago-router-0.0.2

- old
+ new

@@ -1,54 +1,38 @@ -# Galago +# Galago Router -Galago is an API micro framework for Ruby. -I am building it to gain more appreciation for existing tools. +A rack router. ## Installation Add this line to your application's Gemfile: - gem 'galago' + gem 'galago-router' And then execute: $ bundle Or install it yourself as: - $ gem install galago + $ gem install galago-router ## Usage ```ruby -module GitHub::Application < Galago::Application - routes do - get '/users' do - users = User.all - end +# config.ru +require 'galago/router' +require 'rack/lobster' - post '/users' do - user = User.create! params['user'] - end - - patch '/users/:name' do - user = User.find_by_name params['name'] - user.update! params['user'] - end - - put '/users/:name' do - user = User.find_by_name params['name'] - user.update! params['user'] - end - - delete '/users/:name' do - user = User.find_by_name params['name'] - user.destroy! - end - end +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 GitHub::Application +run router ``` ## Contributing 1. Fork it