Przeglądaj źródła

add a slash to the endpoint prefix

kaori 4 lat temu
rodzic
commit
ee000823de
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/app/src/stores/page.tsx

+ 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,