user.route.js 349 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
router
  .route("/logout")
Kim, Subin's avatar
context    
Kim, Subin committed
16
17
18
19
20
21
  .get(userCtrl.logout)

router
  .route("/")
  .get(userCtrl.getUser)

Choi Ga Young's avatar
Choi Ga Young committed
22
export default router;