2
0

feat(account): Add coupon code input

This commit is contained in:
Baptiste Arnaud
2022-02-14 09:00:47 +01:00
parent 9c20ef00b9
commit b345131b0b
5 changed files with 92 additions and 7 deletions

View File

@ -0,0 +1,8 @@
import { sendRequest } from 'utils'
export const redeemCoupon = async (code: string) =>
sendRequest<{ message: string }>({
method: 'POST',
url: '/api/coupons/redeem',
body: { code },
})