added user signup feature
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user