change post to get request with header
This commit is contained in:
parent
2d98665f92
commit
6a56b03bf6
3 changed files with 12 additions and 25 deletions
|
@ -21,8 +21,6 @@
|
|||
async function submitForm(formData) {
|
||||
const response = await fetch("/register", {method: 'POST', body: formData, redirect: 'follow'});
|
||||
if (response.ok) {
|
||||
const json = await response.json();
|
||||
console.log(json);
|
||||
redirect("/");
|
||||
} else {
|
||||
redirect("/register");
|
||||
|
|
Reference in a new issue