Browse Source

fix: user apikey auth

poeti8 6 năm trước cách đây
mục cha
commit
8a0413be38
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/routes/users.ts

+ 1 - 1
server/routes/users.ts

@@ -8,8 +8,8 @@ const router = Router();
 
 router.get(
   "/",
-  asyncHandler(auth.jwt),
   asyncHandler(auth.apikey),
+  asyncHandler(auth.jwt),
   asyncHandler(user.get)
 );