Skip to content

Commit

Permalink
feat : update api/guest.js (#85)
Browse files Browse the repository at this point in the history
나의 할인 정보 api 호출
  • Loading branch information
JungYeonHwi committed Nov 2, 2023
1 parent 33e13d8 commit 370f3b4
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 @@ -52,13 +52,22 @@ const getNickName = async() => {
return data.data;
}

const getDiscountDetail = async() => {
const {data} = await fetcher.get(
`/api/v1/discount/detail`
);

return data.data;
}

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

export default guest;

0 comments on commit 370f3b4

Please sign in to comment.