master
api
export function api<T>(args: ApiInterface): Promise<T> { const { url, token, payload, method } = args; const requestOptions = { method,