added user signup feature

This commit is contained in:
2025-09-26 23:57:36 +02:00
parent 2f0a9b5127
commit 57355fe9ac
15 changed files with 242 additions and 14 deletions

View File

@@ -27,3 +27,13 @@ export function postBook(book) {
body: JSON.stringify(book.value)
})
}
export function postSignup(user) {
return fetch(baseUrl + '/auth/signup', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(user.value)
})
}