rest-vir - v2.2.0
    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.

      Parameters

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

        The URL or path to match against.

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