Skip to content

Commit

Permalink
fix: added / in api
Browse files Browse the repository at this point in the history
  • Loading branch information
Syed Sibtain authored and Syed Sibtain committed May 19, 2023
1 parent d04bbb2 commit 8597688
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/src/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});

Expand All @@ -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,
Expand All @@ -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",
});

Expand Down

0 comments on commit 8597688

Please sign in to comment.