user.api.js 318 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
머지    
seoyeon committed
8
9
10
const signup = async (payload) => {
  const { data } = await axios.post("/api/signup", payload);
  return data;
seoyeon's avatar
0716    
seoyeon committed
11
};
seoyeon's avatar
머지    
seoyeon committed
12
13
14
15

const userApi = { login, signup };

export default userApi;