|
@@ -39,7 +39,7 @@ export const useSWRxSubscribeButton = <Data, Error>(
|
|
|
|
|
|
|
|
): SWRResponse<{status: boolean | null}, Error> => {
|
|
): SWRResponse<{status: boolean | null}, Error> => {
|
|
|
return useSWR(
|
|
return useSWR(
|
|
|
- 'page/subscribe',
|
|
|
|
|
|
|
+ '/page/subscribe',
|
|
|
endpoint => apiv3Get(endpoint, { pageId }).then((response) => {
|
|
endpoint => apiv3Get(endpoint, { pageId }).then((response) => {
|
|
|
return {
|
|
return {
|
|
|
status: response.data.subscribing,
|
|
status: response.data.subscribing,
|