Methods
- A
Included Modules
- Routes
Constants
| Routes | = | ActionDispatch::Routing::RouteSet.new.tap do |app| app.draw do get '/:segment' => lambda { |env| path_params = env['action_dispatch.request.path_parameters'] [200, { 'Content-Type' => 'text/plain' }, [path_params[:segment]]] }, :as => :segment get '/*splat' => lambda { |env| path_params = env['action_dispatch.request.path_parameters'] [200, { 'Content-Type' => 'text/plain' }, [path_params[:splat]]] }, :as => :splat end end |
| APP | = | build_app Routes |
Instance Public methods