frontend
    Preparing search index...

    Function apiFetch

    • Performs a typed HTTP request to the API.

      Type Parameters

      • T

      Parameters

      • url: string

        API endpoint path

      • Optionaloptions: RequestInit

        Fetch request options

      Returns Promise<T>

      Parsed JSON response

      Error if the response is not OK