diff --git a/packages/plugin-rest-cache/admin/src/components/PurgeCacheButton/index.jsx b/packages/plugin-rest-cache/admin/src/components/PurgeCacheButton/index.jsx index be99869..f253769 100644 --- a/packages/plugin-rest-cache/admin/src/components/PurgeCacheButton/index.jsx +++ b/packages/plugin-rest-cache/admin/src/components/PurgeCacheButton/index.jsx @@ -36,7 +36,7 @@ function PurgeCacheButton({ contentType, params, wildcard = undefined, fullWidth // Show the loading state setIsModalConfirmButtonLoading(true); - await post(`/${pluginId}/purge`, { + await post(`/admin/${pluginId}/purge`, { contentType, params, wildcard, diff --git a/packages/plugin-rest-cache/admin/src/components/PurgeDocumentAction/index.jsx b/packages/plugin-rest-cache/admin/src/components/PurgeDocumentAction/index.jsx index b9a79a9..25dc6e8 100644 --- a/packages/plugin-rest-cache/admin/src/components/PurgeDocumentAction/index.jsx +++ b/packages/plugin-rest-cache/admin/src/components/PurgeDocumentAction/index.jsx @@ -60,7 +60,7 @@ function PurgeDocumentAction({ 'Are you sure you want to purge REST Cache for this entry?', })}, onConfirm: async () => { - await post(`/${pluginId}/purge`, { + await post(`/admin/${pluginId}/purge`, { contentType: model, params, wildcard: isSingleType, diff --git a/packages/plugin-rest-cache/admin/src/hooks/useCacheStrategy/index.js b/packages/plugin-rest-cache/admin/src/hooks/useCacheStrategy/index.js index bee1d4f..a739807 100644 --- a/packages/plugin-rest-cache/admin/src/hooks/useCacheStrategy/index.js +++ b/packages/plugin-rest-cache/admin/src/hooks/useCacheStrategy/index.js @@ -34,7 +34,7 @@ const useCacheStrategy = (shouldFetchData = true) => { type: 'GET_DATA', }); - const {data} = await get(`/${pluginId}/config/strategy`, { + const {data} = await get(`/admin/${pluginId}/config/strategy`, { signal, }); const strategy = data.strategy