diff --git a/admin/src/utils/api.js b/admin/src/utils/api.js index b496a9a..9eaf9ec 100644 --- a/admin/src/utils/api.js +++ b/admin/src/utils/api.js @@ -15,7 +15,7 @@ export const refreshCache = async (type) => { export const refreshAllCache = async () => { try { const response = await axios({ - url: `${pluginId}/cache/refresh`, + url: `/${pluginId}/cache/refresh`, method: "POST", }); @@ -28,7 +28,7 @@ export const refreshAllCache = async () => { export const refreshCollectionCache = async (collection) => { try { const response = await axios({ - url: `${pluginId}/cache/refreshcollection`, + url: `/${pluginId}/cache/refreshcollection`, method: "POST", data: { collection: collection, @@ -44,7 +44,7 @@ export const refreshCollectionCache = async (collection) => { export const getCollectionTypes = async () => { try { const response = await axios({ - url: `${pluginId}/collections`, + url: `/${pluginId}/collections`, method: "GET", });