Sha256: a82f1cd3c69efaa0102f8f4443dea6b82f5552c802fabb77337375e86bb476ed
Contents?: true
Size: 443 Bytes
Versions: 3
Compression:
Stored size: 443 Bytes
Contents
require 'galago/router' require 'rack/lobster' router = Galago::Router.new do get '/foo', to: ->(env) { [200, {}, ['foo']] } post '/bar/:bar', to: ->(env) { [200, {}, ['bar']] } namespace :lobsters do get '/', to: Rack::Lobster.new post '/', to: Rack::Lobster.new patch ':name', to: Rack::Lobster.new put ':name', to: Rack::Lobster.new delete ':name', to: Rack::Lobster.new end end run router
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
galago-router-0.2.0 | examples/readme.ru |
galago-router-0.1.1 | examples/readme.ru |
galago-router-0.1.0 | examples/readme.ru |