cp .env.example .env # or create .env
yarn
yarn start
fetch(base + 'users', {
method: 'GET',
headers: {
'x-access-token': '',
}
});
fetch(base + 'users', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-access-token': '',
},
body: JSON.stringify({
username,
password
})
});