From d04bbb2398719985efb74648e2ede51cc9ef4792 Mon Sep 17 00:00:00 2001 From: Syed Sibtain Date: Fri, 19 May 2023 16:05:04 +0530 Subject: [PATCH 1/2] 1.5.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 29e5162..54885a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "strapi-plugin-stellate", - "version": "1.4.4", + "version": "1.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "strapi-plugin-stellate", - "version": "1.4.4", + "version": "1.5.0", "license": "MIT", "dependencies": { "@strapi/helper-plugin": "^4.8.2", diff --git a/package.json b/package.json index 4177046..5875e4d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@code-mancers/strapi-plugin-stellate", "private": false, - "version": "1.4.4", + "version": "1.5.0", "repository": { "type": "git", "url": "git+https://github.com/code-mancers/strapi-plugin-stellate" From 8597688608f8ca1f23a2e191144f014a11629b3d Mon Sep 17 00:00:00 2001 From: Syed Sibtain Date: Fri, 19 May 2023 16:16:50 +0530 Subject: [PATCH 2/2] fix: added / in api --- admin/src/utils/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", });