auth.routes.js 273 Bytes
Newer Older
Lee SeoYeon's avatar
0111    
Lee SeoYeon committed
1
import express from "express"
Lee SeoYeon's avatar
.    
Lee SeoYeon committed
2
import authCtrl from "../controllers/auth.controller.js"
Lee SeoYeon's avatar
0111    
Lee SeoYeon committed
3
4
5
6
7
8
9
10
11
12
13

const router = express.Router()

router.route('/api/auth/login')
        .post(authCtrl.login)


router.route('/api/auth/logout')
        .get(authCtrl.logout)
   
export default router