@fingerprintjs/url-matcher
    Preparing search index...

    Function parseRoutes

    • Parses a list of route strings into an array of Route objects that contain detailed route information.

      Type Parameters

      • Metadata

      Parameters

      • allRoutes: RouteParam<Metadata>[]

        An array of route strings to be parsed. Each route string can contain protocols, hostnames, and paths.

      • options: ParseRoutesOptions = {}

        Optional options.

      Returns Route<Metadata>[]

      An array of parsed Route objects with details such as hostname, path, and protocol.

      If provided URL protocol in one of the routes is not http: or https:.

      If a route contains a query string or infix wildcard which is not allowed.