-
Notifications
You must be signed in to change notification settings - Fork 0
[Week6] 박성일 과제제출 #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: seongil-week6
Are you sure you want to change the base?
[Week6] 박성일 과제제출 #25
Conversation
isuh88
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고했슴당~~ 👍
| const vote = async (val) => { | ||
| try { | ||
| // ### TO DO ### | ||
| // ############# | ||
| const response = await axios.post( | ||
| "https://api.thecatapi.com/v1/votes", | ||
| { | ||
| image_id: image.id, | ||
| sub_id: userId, | ||
| value: val, | ||
| }, | ||
| { | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| "x-api-key": | ||
| "live_Iyhi1ILrF0FD1vlsdHpX4CYBM37yG1ZXsUjP58Jx4Wov7qsp27cZmsuBjMt0HYVo", | ||
| }, | ||
| } | ||
| ); | ||
| } catch (err) { | ||
| console.log(err); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗 아까 쓰는걸 깜박했는데, 지금은 투표 후에 요청은 post로 잘 전송되나 새로운 고양이 이미지가 다시 불러와지지는 않아요! getImage()를 통해 vote를 호출하여 투표를 완료하면 다음 고양이 사진이 보이도록 수정하면 좋을 것 같네요 :)
charijyard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 아이디를 안 알려드려서 assignee가 잘못 지정된 것 같아요 ㅎㅎ 저(박민서)의 아이디는 charijyard입니다 🙂! 그리고 코드도 저한테는 완벽해 보이네요 ~~~ 고생하셨습니다앙
💎 과제 구현 설명
🏁 PR 체크리스트
🖼️ Screenshot / Video
🙌 Issue