Wayfinder.Processor.IgnoreFilter (Wayfinder Ex v0.1.4)

View Source

Handles filtering of Phoenix routes based on ignore patterns configured in the application.

Supports regex patterns to ignore routes that match specific path patterns. Patterns are compiled once and cached for performance.

Summary

Functions

Gets compiled ignore patterns from persistent term cache. Initializes patterns if not already cached.

Types

compiled_patterns()

@type compiled_patterns() :: [Regex.t()]

Functions

call()

@spec call() :: {:ok, compiled_patterns()} | {:error, Wayfinder.Error.t()}

Gets compiled ignore patterns from persistent term cache. Initializes patterns if not already cached.

ignore?(arg1, patterns)

@spec ignore?(Phoenix.Router.Route.t(), compiled_patterns()) :: boolean()