module Athena::Routing

Overview

Provides a performant and robust HTTP based routing library/framework.

Defined in:

annotations.cr
athena-routing.cr
ext/regex.cr

Constant Summary

VERSION = "0.1.10"

Class Method Summary

Class Method Detail

def self.compile(routes : ART::RouteCollection, *, route_provider : ART::RouteProvider.class = ART::RouteProvider) : Nil #

Before ART::Routes can be matched or generated, they must first be compiled. This process compiles each route into its ART::CompiledRoute representation, then merges them all together into a more efficient cacheable format.

A custom route_provider type may be provided to compile the routes into a different provider. By default, the default global ART::RouteProvider is used.


[View source]