Explorar o código

add a slash to the endpoint prefix

kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
ee000823de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,