auth.routes.js 345 Bytes
Newer Older
우지원's avatar
01_06    
우지원 committed
1
2
3
4
5
6
7
8
import express from 'express'
import authCtrl from '../controllers/auth.controller.js'

const router = express.Router()
//router의 역할 : './주소'부분을 처리하는 역할함. 

router.route('/auth/login')
    .post(authCtrl.login)
9
    .get(authCtrl.login)
우지원's avatar
01_06    
우지원 committed
10
11
12

router.route('/auth/logout')
    .get(authCtrl.logout)
Choi Ga Young's avatar
Choi Ga Young committed
13

우지원's avatar
01_06    
우지원 committed
14
15

export default router