user.api.js 265 Bytes
Newer Older
1
import axios from "axios";
Kim, Chaerin's avatar
Kim, Chaerin committed
2
import endpoints  from "./endpoints";
3
4
5

const login = async (email, password) => {
  const payload = { email, password };
Kim, Chaerin's avatar
Kim, Chaerin committed
6
  const { data } = await axios.post(`${endpoints.API_BASE_URL}/`, payload);
7
8
9
10
  return data;
};

export default login;