fix(enterprise): use delete for remove share

This commit is contained in:
vimtor 2026-06-24 12:43:39 +02:00
parent 6eec98371a
commit bd149f0daa
No known key found for this signature in database

View File

@ -139,7 +139,7 @@ app
return c.json({}) return c.json({})
}, },
) )
.post("/support/actions/remove-share", async (c) => { .delete("/support/actions/remove-share", async (c) => {
const authorization = c.req.header("authorization") const authorization = c.req.header("authorization")
const expected = `Bearer ${(Resource as unknown as Record<string, { value: string }>).SUPPORT_API_KEY.value}` const expected = `Bearer ${(Resource as unknown as Record<string, { value: string }>).SUPPORT_API_KEY.value}`
const actual = Buffer.from(authorization ?? "") const actual = Buffer.from(authorization ?? "")