Skip to content

Commit

Permalink
feat : update api/guest.js (#74)
Browse files Browse the repository at this point in the history
사용자 계정 정보 API 연동
  • Loading branch information
JungYeonHwi committed Oct 9, 2023
1 parent 8d4322e commit 39b0ba9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion api/guest.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,21 @@ const submitStudentCard = async(form) => {
return data;
}

const getNickName = async() => {
const {data} = await fetcher.get(
`/api/v1/mypage`
);

return data.data;
}

const guest = {
submitRegister,
submitOwnerRegister,
login,
ownerLogin,
submitStudentCard
submitStudentCard,
getNickName
}

export default guest;

0 comments on commit 39b0ba9

Please sign in to comment.