Commit 0b842128 authored by seoyeon's avatar seoyeon
Browse files

merge

parent 1aa67949
import axios from "axios"; import axios from "axios";
const getUser = async (id) => { const getUser = async (payload) => {
const { data } = await axios.get(`/api/getUser/${id}`); const { data } = await axios.post("/api/getUser", payload);
return data; return data;
}; };
......
...@@ -3,7 +3,7 @@ import userCtrl from "../controllers/user.controller.js"; ...@@ -3,7 +3,7 @@ import userCtrl from "../controllers/user.controller.js";
const router = express.Router(); const router = express.Router();
router.route("/getUser").get(userCtrl.getUser); router.route("/getUser").post(userCtrl.getUser);
router.route("/login").post(userCtrl.login); router.route("/login").post(userCtrl.login);
router.route("/signup").post(userCtrl.signup); router.route("/signup").post(userCtrl.signup);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment