|
|
@ -1,3 +1,4 @@ |
|
|
|
import { create } from "apisauce"; |
|
|
|
import authClient from "../auth/authClient"; |
|
|
|
|
|
|
|
function login(name, password) { |
|
|
@ -34,9 +35,9 @@ function signup({ |
|
|
|
roles: ["ROLE_CLIENT"], |
|
|
|
}; |
|
|
|
|
|
|
|
Object.entries(body).forEach(([key, value]) => { |
|
|
|
value == "" && delete body[key]; |
|
|
|
}); |
|
|
|
// Object.entries(body).forEach(([key, value]) => {
|
|
|
|
// value == "" && delete body[key];
|
|
|
|
// });
|
|
|
|
|
|
|
|
return authClient.post(`/signup`, body); |
|
|
|
} |
|
|
|