Dados mockados
This commit is contained in:
@@ -59,11 +59,12 @@ const Page: React.FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const api = axios.create({
|
const api = axios.create({
|
||||||
baseURL: `https://reqres.in/api`,
|
baseURL: `https://625dc16c4c36c7535779792c.mockapi.io/api/v1`,
|
||||||
});
|
});
|
||||||
|
|
||||||
api
|
api
|
||||||
.post("/login", loginData)
|
// .post("/login", loginData)
|
||||||
|
.get("/users/2")
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
// login bem-sucedido
|
// login bem-sucedido
|
||||||
history.push("/dashboard/" + email);
|
history.push("/dashboard/" + email);
|
||||||
|
|||||||
Reference in New Issue
Block a user