Browse Source

fix: authenticate users to edit

poeti8 5 năm trước cách đây
mục cha
commit
91879d70d2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)