module Athena::Routing::RouterInterface

Overview

Interface for routing types.

A router instance must also implement both ART::RequestMatcherInterface and ART:URLGeneratorInterface as well as expose the routes via an#route_collection` method.

Included Modules

Direct including types

Defined in:

routing/router_interface.cr

Instance Method Summary

Instance methods inherited from module Athena::Routing::URLGeneratorInterface

generate(route : String, params : Hash(String, _) | Nil = nil, reference_type : ART::URLGeneratorInterface::ReferenceType = :absolute_path) : String generate

Instance methods inherited from module Athena::Routing::RequestMatcherInterface

match(request : HTTP::Request) : Amber::Router::RoutedResult(Athena::Routing::ActionBase) match

Instance Method Detail

abstract def route_collection : ART::RouteCollection #

Returns the ART::RouteCollection associated with this router.


[View source]