Skip to content

Commit

Permalink
Merge pull request #27 from code-mancers/hot-fix
Browse files Browse the repository at this point in the history
Add slash in Api
  • Loading branch information
SujayPrabhu96 authored May 19, 2023
2 parents 5df3516 + 8597688 commit 8cac700
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8cac700

Please sign in to comment.