profile.api.js 324 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import axios from "axios";

const login = async (payload) => {
  const { data } = await axios.post("/api/login", payload);
  return data;
};

const signup = async (payload) => {
  const { data } = await axios.post("/api/signup", payload);
  return data;
};

const profileApi = { login, signup };

export default profileApi;