Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down