revert 修复登录bug
This commit is contained in:
2025-11-17 15:09:32 +00:00
parent 14e47bb35e
commit 437522232c
5 changed files with 22 additions and 37 deletions

View File

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