feat(api): change subscription product options and catalog endpoints to use GET method

This commit is contained in:
CaIon
2026-06-18 17:15:05 +08:00
parent b8f5ba4a31
commit 50784c10ee
4 changed files with 10 additions and 19 deletions
+1 -1
View File
@@ -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
}