mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Renamed operations to handlers in usage
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import cart from '@commerce/api/endpoints/cart'
|
||||
import { CartAPI, operations } from '@framework/api/endpoints/cart'
|
||||
import { CartAPI, handlers } from '@framework/api/endpoints/cart'
|
||||
import commerce from '@lib/api/commerce'
|
||||
|
||||
export default commerce.endpoint({
|
||||
handler: cart as CartAPI['endpoint']['handler'],
|
||||
operations,
|
||||
handlers,
|
||||
})
|
||||
|
@@ -1,8 +1,8 @@
|
||||
import customer from '@commerce/api/endpoints/customer'
|
||||
import { CustomerAPI, operations } from '@framework/api/endpoints/customer'
|
||||
import { CustomerAPI, handlers } from '@framework/api/endpoints/customer'
|
||||
import commerce from '@lib/api/commerce'
|
||||
|
||||
export default commerce.endpoint({
|
||||
handler: customer as CustomerAPI['endpoint']['handler'],
|
||||
operations,
|
||||
handlers,
|
||||
})
|
||||
|
@@ -1,8 +1,8 @@
|
||||
import login from '@commerce/api/endpoints/login'
|
||||
import { LoginAPI, operations } from '@framework/api/endpoints/login'
|
||||
import { LoginAPI, handlers } from '@framework/api/endpoints/login'
|
||||
import commerce from '@lib/api/commerce'
|
||||
|
||||
export default commerce.endpoint({
|
||||
handler: login as LoginAPI['endpoint']['handler'],
|
||||
operations,
|
||||
handlers,
|
||||
})
|
||||
|
@@ -1,8 +1,8 @@
|
||||
import logout from '@commerce/api/endpoints/logout'
|
||||
import { LogoutAPI, operations } from '@framework/api/endpoints/logout'
|
||||
import { LogoutAPI, handlers } from '@framework/api/endpoints/logout'
|
||||
import commerce from '@lib/api/commerce'
|
||||
|
||||
export default commerce.endpoint({
|
||||
handler: logout as LogoutAPI['endpoint']['handler'],
|
||||
operations,
|
||||
handlers,
|
||||
})
|
||||
|
@@ -1,8 +1,8 @@
|
||||
import signup from '@commerce/api/endpoints/signup'
|
||||
import { SignupAPI, operations } from '@framework/api/endpoints/signup'
|
||||
import { SignupAPI, handlers } from '@framework/api/endpoints/signup'
|
||||
import commerce from '@lib/api/commerce'
|
||||
|
||||
export default commerce.endpoint({
|
||||
handler: signup as SignupAPI['endpoint']['handler'],
|
||||
operations,
|
||||
handlers,
|
||||
})
|
||||
|
Reference in New Issue
Block a user