Explorar o código

fix: authenticate users to edit

poeti8 %!s(int64=5) %!d(string=hai) anos
pai
achega
91879d70d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)