Open
Description
When I Try to call the Add Note Api From fronted the geting an issue :-
const addNote = async(title,description,tag)=>{ //TODO : API Calls const response = await fetch(
${host}/api/notes/addNotes`, {
method:'POST',
headers:{
'Content-Type':'application/json',
"auth-token" :'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNjM3Y2M5NWVlZmVlZTI5NjdlNWVkOWVjIn0sImlhdCI6MTY2OTIwMzgzNn0.-TJ8Rn6mrzY6JrQhwoProF8PixCXnnpgsAx2OQfSS8I'
},
body: JSON.stringify({"title":title,"description":description,"tag":tag})
})
const note = await response.json();
setNotes(notes.concat(note));
}`
Metadata
Metadata
Assignees
Labels
No labels