auth.routes.js 240 Bytes
Newer Older
Yoon, Daeki's avatar
Yoon, Daeki committed
1
import express from 'express'
Yoon, Daeki's avatar
quiz    
Yoon, Daeki committed
2
import authCtrl from './auth.controller.js'
Yoon, Daeki's avatar
Yoon, Daeki committed
3
4
5
6
7
8
9
10
11
12

const router = express.Router()

router.route('/auth/signin')
  .post(authCtrl.signin)

router.route('/auth/signout')
  .get(authCtrl.signout)

export default router