Update API request formatting and routing structure
This commit is contained in:
@ -71,5 +71,7 @@ const useClientRequest = async <T = unknown>(
|
||||
body?: any,
|
||||
config?: Omit<FetchOptions, 'method' | 'body'>
|
||||
): Promise<T> => {
|
||||
console.log({ ...config, method: 'PUT', body });
|
||||
|
||||
return useClientRequest<T>(endpoint, { ...config, method: 'PUT', body })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user