@umbraco-cms/backoffice
    Preparing search index...

    Function matchRoutes

    • Matches the first route that matches the given path.

      Type Parameters

      • D = any

      Parameters

      • routes: UmbRoute<D>[]

        The routes to match against.

      • path: string

        The path to match.

      Returns IRouteMatch<D> | null

      The first matching route, or null if none matches.