feat(api): change subscription product options and catalog endpoints to use GET method
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@ export async function listWaffoPancakeSubscriptionProductOptions(): Promise<
|
||||
products: { id: string; name: string; status: string }[]
|
||||
}>
|
||||
> {
|
||||
const res = await api.post(
|
||||
const res = await api.get(
|
||||
'/api/option/waffo-pancake/subscription-product-options'
|
||||
)
|
||||
return res.data
|
||||
|
||||
@@ -64,9 +64,9 @@ export async function listWaffoPancakeCatalog(
|
||||
merchantID: string,
|
||||
privateKey: string
|
||||
): Promise<CatalogResponse> {
|
||||
const res = await api.post<CatalogResponse>(
|
||||
const res = await api.get<CatalogResponse>(
|
||||
'/api/option/waffo-pancake/catalog',
|
||||
{ merchant_id: merchantID, private_key: privateKey }
|
||||
{ params: { merchant_id: merchantID, private_key: privateKey } }
|
||||
)
|
||||
return res.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user