This commit is contained in:
2025-04-17 23:32:39 +09:00
commit 5b719b6766
105 changed files with 25653 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
const express = require('express');
const router = express.Router();
const authController = require('../controllers/authController');
// 인증 미들웨어
const authMiddleware = require('../middleware/auth');
// 로그인
router.post('/login', authController.login);
// 현재 사용자 정보 가져오기
router.get('/me', authMiddleware, authController.getCurrentUser);
// 회원가입
router.post('/register', authController.register);
// 프로필 업데이트
router.put('/profile', authMiddleware, authController.updateProfile);
module.exports = router;