mirror of
https://github.com/vercel/commerce.git
synced 2025-06-07 16:56:59 +00:00
update url for customer hook
This commit is contained in:
parent
daabb58fed
commit
5d1341d012
@ -11,7 +11,7 @@ export default useCustomer as UseCustomer<typeof handler>
|
|||||||
|
|
||||||
export const handler: SWRHook<CustomerHook> = {
|
export const handler: SWRHook<CustomerHook> = {
|
||||||
fetchOptions: {
|
fetchOptions: {
|
||||||
url: `/customers/`,
|
url: `/api/v2/shop/customers/`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
},
|
},
|
||||||
fetcher: async ({ options, fetch }) => {
|
fetcher: async ({ options, fetch }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user