瀏覽代碼

fix: authenticate users to edit

poeti8 5 年之前
父節點
當前提交
91879d70d2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/routes/links.ts

+ 1 - 1
server/routes/links.ts

@@ -31,7 +31,7 @@ router.post(
 router.patch(
   "/:id",
   asyncHandler(auth.apikey),
-  asyncHandler(auth.jwtLoose),
+  asyncHandler(auth.jwt),
   validators.editLink,
   asyncHandler(helpers.verify),
   asyncHandler(link.edit)