rest-vir - v2.3.5
    Preparing search index...

    Function matchUrlToRoute

    • Given a raw path or URL, finds an endpoint or WebSocket path that will match in the given service. If no match is found, this returns undefined. Matches exactly what Fastify's router would match for the same URL.

      Parameters

      • this: void
      • api: ApiDefinition
      • url: string

        The URL or path to match against.

      Returns
          | RequireAtLeastOneHelper<
              { endpointPath: `/${string}`; webSocketPath: `/${string}` },
              "webSocketPath" | "endpointPath",
          >
          | undefined