Skip to content

Commit

Permalink
chore: console 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbeann committed Jan 18, 2024
1 parent 8e5d30d commit 543478d
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions src/LecueNote/api/postLecueNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,20 @@ const postLecueNote = ({
isIconClicked,
bookId,
}: postLecueNoteProps) => {
const response = api
.post(
'/api/notes',
{
bookId: bookId,
content: contents,
textColor: color,
background: isIconClicked ? fileName : bgColor,
const response = api.post(
'/api/notes',
{
bookId: bookId,
content: contents,
textColor: color,
background: isIconClicked ? fileName : bgColor,
},
{
headers: {
Authorization: `Bearer ${import.meta.env.VITE_APP_TOKEN}`,
},
{
headers: {
Authorization: `Bearer ${import.meta.env.VITE_APP_TOKEN}`,
},
},
)
.then((res) => {
console.log(res);
});
},
);

return response;
};
Expand Down

0 comments on commit 543478d

Please sign in to comment.