修复登录bug

This commit is contained in:
2025-08-05 22:42:02 +08:00
parent a3264be5f6
commit 0edceecfe5
5 changed files with 37 additions and 22 deletions

View File

@@ -27,7 +27,7 @@ router.post('/login', [
], authController.login);
// Logout
router.post('/logout', authMiddleware, authController.logout);
router.post('/logout', authController.logout);
// Get current user
router.get('/me', authMiddleware, authController.getCurrentUser);