2
0
Эх сурвалжийг харах

add a slash to the endpoint prefix

kaori 4 жил өмнө
parent
commit
ee000823de

+ 1 - 1
packages/app/src/stores/page.tsx

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