📂Better folder structures and file names in backend

This commit is contained in:
canove
2020-07-08 11:48:11 -03:00
parent c9cc973088
commit b1bed3623e
11 changed files with 55 additions and 68 deletions

View File

@@ -64,11 +64,11 @@ const SignUp = () => {
const handleSignUp = async e => {
e.preventDefault();
try {
await api.put("/auth/signup", user);
await api.post("/auth/signup", user);
history.push("/login");
} catch (err) {
alert(err);
}
history.push("/login");
};
return (