user.route.js 281 Bytes
Newer Older
Kim, Chaerin's avatar
Kim, Chaerin committed
1
2
3
4
5
import express from "express";
import userCtrl from "../controllers/user.controller.js";

const router = express.Router();

Kim, Chaerin's avatar
.    
Kim, Chaerin committed
6
router.route("/login").post(userCtrl.login);
Kim, Chaerin's avatar
서버    
Kim, Chaerin committed
7
router.route("/signup").post(userCtrl.signup);
Kim, Chaerin's avatar
Kim, Chaerin committed
8

seoyeon's avatar
0716    
seoyeon committed
9
router.route("/").post(userCtrl.signup);
Kim, Chaerin's avatar
Kim, Chaerin committed
10
export default router;