user.route.js 302 Bytes
Newer Older
Choi Ga Young's avatar
Choi Ga Young committed
1
2
3
4
5
6
7
8
9
10
11
import express from 'express';
import userCtrl from '../controllers/user.controller.js';

const router = express.Router();

router
  .route("/signup")
  .post(userCtrl.signup)

router
  .route("/login")
12
  .post(userCtrl.login)
Choi Ga Young's avatar
Choi Ga Young committed
13

14
15
16
router
  .route("/logout")
  .get(userCtrl.logout )
Choi Ga Young's avatar
Choi Ga Young committed
17
export default router;