class Athena::Routing::URLGenerator

Overview

Default implementation of ART::URLGeneratorInterface.

Included Modules

Defined in:

routing/url_generator.cr

Constructors

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

Constructor Detail

def self.new(routes : ART::RouteCollection, request : HTTP::Request) #

[View source]

Instance Method Detail

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

:inherit:

params are validated to ensure they are all provided, and meet any route constraints defined on the action.

OPTIMIZE Make URL generation more robust. ameba:disable Metrics/CyclomaticComplexity


[View source]