We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b577af + 9a0fc72 commit afd82c2Copy full SHA for afd82c2
ui/packages/ce/src/api/snapshots/destroySnapshot.js renamed to ui/packages/ce/src/api/snapshots/destroySnapshot.ts
@@ -7,13 +7,9 @@
7
8
import { request } from 'helpers/request'
9
10
-export const destroySnapshot = async (snapshotId, forceDelete) => {
11
- const response = await request(`/snapshot/delete`, {
12
- method: 'POST',
13
- body: JSON.stringify({
14
- snapshotID: snapshotId,
15
- force: forceDelete,
16
- }),
+export const destroySnapshot = async (snapshotId: string, forceDelete: boolean) => {
+ const response = await request(`/snapshot/${snapshotId}?force=${forceDelete}`, {
+ method: 'DELETE'
17
})
18
19
return {
0 commit comments