user.api.js 400 Bytes
Newer Older
1
2
import axios from "axios";

Kim, Chaerin's avatar
.    
Kim, Chaerin committed
3
const login = async (payload) => {
4
  const { data } = await axios.post("/api/login", payload);
5
6
7
  return data;
};

seoyeon's avatar
0716    
seoyeon committed
8
9
10
11
12
13
14
15
16
// const signup = async (email, password) => {
//   const payload = { email, password, phone, gender } = req.body;
//   const { data } = await axios.post(`${endpoints.API_BASE_URL}/`, payload);
//   return data;
// }
export default {
  login,
  // signup
};