struct Athena::Routing::Listeners::Routing

Overview

Sets the related ART::Action on the current request via an ART::RequestMatcherInterface.

Included Modules

Defined in:

listeners/routing_listener.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(matcher : ART::RequestMatcherInterface) #

[View source]

Class Method Detail

def self.subscribed_events : AED::SubscribedEvents #

[View source]

Instance Method Detail

def call(event : ART::Events::Request, dispatcher : AED::EventDispatcherInterface) : Nil #

Assigns the resolved ART::Action and path parameters to the request.

The resolved route is dupped to avoid mutating the master copy in the singleton.


[View source]