Answer the question
In order to leave comments, you need to log in
How to use json server?
Hello. How to make requests using json server? https://github.com/typicode/json-server
I am writing a study project, personal account, contact list. The contact page is available only with authorization. How to implement it? Can anyone write a specific example here?
I have already written all the functionality, but got stuck with authorization.
--------------
I figured out how to make a get request. But how do I simulate authorization?
Answer the question
In order to leave comments, you need to log in
As an option:
db.json
the field"users": [{email: "[email protected]", password: "1234"},...]
/register
and/login
/register
add user in "users"
, and in /login
search for user in "users"
- link to the dockDidn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question