View Source Routes.Transformer (routes v0.2.0)
Transforms Phoenix route maps into simplified route structures.
Provides functionality to convert complex Phoenix route maps into a more normalized format that is easier to work with.
Summary
Functions
Transforms a Phoenix route map into a simplified route structure.
Types
Functions
@spec transform(route_map()) :: transformed_route() | nil
Transforms a Phoenix route map into a simplified route structure.
Takes a route map containing the path, plug options, HTTP verb and plug module, and converts it into a transformed route with normalized fields.
Returns nil
if the input is invalid or cannot be transformed.