feat: create user endpoint

This commit is contained in:
canove
2020-08-27 19:19:25 -03:00
parent ffc4538d47
commit 04477783b4
7 changed files with 99 additions and 25 deletions

View File

@@ -66,7 +66,7 @@ const SignUp = () => {
const handleSignUp = async e => {
e.preventDefault();
try {
await api.post("/auth/signup", user);
await api.post("/users", user);
toast.success(i18n.t("signup.toasts.success"));
history.push("/login");
} catch (err) {