The relative or absolute path to fetch from
Optionaloptions: IApiHandlerParams<Data>An object containing optional configuration options for the API handler
Represents the parameters for an API handler.
OptionalabortSignal?: AbortSignalOptionalfallback?: (e: Error) => voidOptionalfetch?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response> & (OptionalfetchParams?: () => RequestInitOptionalonLoadBegin?: () => voidOptionalonLoadEnd?: (isOk: boolean) => voidOptionalorigin?: stringOptionalrequestMap?: (url: URL) => URLOptionalresponseMap?: (json: Data) => Record<string, any> | Promise<Record<string, any>>OptionalwithAbortSignal?: boolean
This function is a generic API handler that fetches data from a specified path using the Fetch API. It provides options for customizing the fetch request, handling loading state, aborting the request, and error handling.