@@ -51,14 +51,14 @@ export const newApiFetchRaw = async <T>(
|
||||
path: string,
|
||||
options?: FetchOptions
|
||||
): Promise<INewApiRawResponse<T>> => {
|
||||
const response = await $fetch.raw<T>(path, {
|
||||
const res = await $fetch.raw<T>(path, {
|
||||
baseURL: BASE_URL,
|
||||
...options
|
||||
});
|
||||
|
||||
return {
|
||||
_data: response._data as T | undefined,
|
||||
headers: response.headers
|
||||
_data: res._data as T | undefined,
|
||||
headers: res.headers
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user