diff --git a/components/AppApiKeys.vue b/components/AppApiKeys.vue index 07aecc5..7e2cc6d 100644 --- a/components/AppApiKeys.vue +++ b/components/AppApiKeys.vue @@ -70,8 +70,8 @@ const { mutate, data, isPending } = useMutation({ const { mutate: deleteApiKeyApi } = useMutation({ mutationFn: (r: any) => { - return $fetch('/api/api-keys/delete-api-key', { - method: 'delete', + return $fetch.raw('/api/api-keys/delete-api-key', { + method: 'post', query: { orgName, appName, diff --git a/components/PeopleOrg.vue b/components/PeopleOrg.vue index 2bbf30c..6bcf4da 100644 --- a/components/PeopleOrg.vue +++ b/components/PeopleOrg.vue @@ -129,7 +129,7 @@ const { mutate: deleteRole, isPending: deleteRoleIsPending } = useMutation({ mutationFn: async (req: any) => { const email = req.prop.data.email await $fetch('/api/org-people/remove-user-from-org', { - method: 'delete', + method: 'post', body: { email, orgName }, }) refresh() diff --git a/pages/orgs/[orgName]/apps/[appId]/releases/[detailArtifact].vue b/pages/orgs/[orgName]/apps/[appId]/releases/[detailArtifact].vue index ff94b05..b90ded1 100644 --- a/pages/orgs/[orgName]/apps/[appId]/releases/[detailArtifact].vue +++ b/pages/orgs/[orgName]/apps/[appId]/releases/[detailArtifact].vue @@ -15,7 +15,7 @@ Release Id {{ detailArtifact?.releaseId }} Version {{ detailArtifact?.versionName2 }} ({{ detailArtifact?.versionCode2 - }}) + }}) {{ formatDate(detailArtifact?.createdAt) }}
@@ -111,7 +111,7 @@ const router = useRouter() const { mutate, isPending } = useMutation({ mutationFn: (r) => { return $fetch.raw('/api/artifacts/delete-artifact', { - method: 'delete', + method: 'post', query: { orgName, appName, diff --git a/server/api/api-keys/delete-api-key.delete.ts b/server/api/api-keys/delete-api-key.post.ts similarity index 100% rename from server/api/api-keys/delete-api-key.delete.ts rename to server/api/api-keys/delete-api-key.post.ts diff --git a/server/api/artifacts/delete-artifact.delete.ts b/server/api/artifacts/delete-artifact.ts similarity index 100% rename from server/api/artifacts/delete-artifact.delete.ts rename to server/api/artifacts/delete-artifact.ts diff --git a/server/api/org-people/remove-user-from-org.delete.ts b/server/api/org-people/remove-user-from-org.post.ts similarity index 100% rename from server/api/org-people/remove-user-from-org.delete.ts rename to server/api/org-people/remove-user-from-org.post.ts