소스 검색

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)