started login page changes

This commit is contained in:
subnub
2024-07-17 23:02:51 -04:00
parent 8c6c916444
commit 1e2dc81091
7 changed files with 205 additions and 226 deletions
+17
View File
@@ -1,6 +1,23 @@
import axios from "../axiosInterceptor";
// GET
export const getUserToken = async () => {
const response = await axios.post("/user-service/get-token");
response.data;
};
export const getUserAPI = async () => {
const response = await axios.get("/user-service/user");
return response.data;
};
// POST
export const loginAPI = async (email: string, password: string) => {
const response = await axios.post("/user-service/login", {
email,
password,
});
response.data;
};