Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Alfodr::Route
Inherits
Struct
<
Value
<
Object
Constructors
new
(verb :
String
, resource :
String
, handler :
HTTP::Server::Context
-> , action :
Symbol
= :index, valve :
Symbol
= :web, scope :
String
= "", controller :
String
= "")
Source
Instance methods
action
Source
action=
(action :
Symbol
)
Source
call
(context)
Source
controller
Source
controller=
(controller :
String
)
Source
handler
Source
handler=
(handler :
HTTP::Server::Context
-> _)
Source
params
Source
params=
(params)
Source
resource
Source
resource=
(resource :
String
)
Source
scope
Source
scope=
(scope :
String
)
Source
substitute_keys_in_path
(params :
Hash
(
String
,
String
) |
Nil
= nil)
Source
to_json
Source
trail
Source
valve
Source
valve=
(valve :
Symbol
)
Source
verb
Source
verb=
(verb :
String
)
Source