change paths, add task to db
This commit is contained in:
parent
6a56b03bf6
commit
9e058e4f03
7 changed files with 87 additions and 70 deletions
|
@ -19,11 +19,11 @@
|
|||
{{template "formScripts" .}}
|
||||
<script>
|
||||
async function submitForm(formData) {
|
||||
const response = await fetch("/register", {method: 'POST', body: formData, redirect: 'follow'});
|
||||
const response = await fetch("/auth/register", {method: 'POST', body: formData, redirect: 'follow'});
|
||||
if (response.ok) {
|
||||
redirect("/");
|
||||
} else {
|
||||
redirect("/register");
|
||||
redirect("/view/register");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Reference in a new issue