class Hanami::Routing::ClassEndpoint
Routing
endpoint This is the object that responds to an HTTP request made against a certain path.
The router will use this class for:
* Classes * Hanami::Action endpoints referenced as a class * Hanami::Action endpoints referenced a string * RESTful resource(s)
@since 0.1.0
@api private
@example
require 'hanami/router' Hanami::Router.new do get '/class', to: RackMiddleware get '/hanami-action-class', to: Dashboard::Index get '/hanami-action-string', to: 'dashboard#index' resource 'identity' resources 'articles' end
Public Instance Methods
call(env)
click to toggle source
Rack interface
@since 0.1.0 @api private
# File lib/hanami/routing/endpoint.rb, line 100 def call(env) __getobj__.new.call(env) end