Sha256: 9f7940d8b2a137577572de1fc5d155da13edabed2a8d5bea586b41cc9154d715
Contents?: true
Size: 384 Bytes
Versions: 4
Compression:
Stored size: 384 Bytes
Contents
require 'galago/router' EchoParams = lambda { |env| params = Rack::Request.new(env).params Rack::Response.new(params).finish } router = Galago::Router.new do get '/echo_params', to: EchoParams get '/echo_params/:name', to: EchoParams post '/echo_params', to: EchoParams put '/echo_params/:name', to: EchoParams delete '/echo_params', to: EchoParams end run router
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
galago-router-0.2.0 | examples/echo_param.ru |
galago-router-0.1.1 | examples/echo_param.ru |
galago-router-0.1.0 | examples/echo_param.ru |
galago-router-0.0.2 | examples/echo_param.ru |