@drupflare/spool - v0.1.0
    Preparing search index...

    Function matchRoute

    • the first route whose pattern fits path, with the params it captured

      Type Parameters

      • T extends { pattern: string }

      Parameters

      • routes: readonly T[]
      • path: string

      Returns { params: Params; route: T } | null