Просмотр исходного кода

fix(enterprise): use delete for remove share

vimtor 1 месяц назад
Родитель
Сommit
bd149f0daa
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/enterprise/src/routes/api/[...path].ts

+ 1 - 1
packages/enterprise/src/routes/api/[...path].ts

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