Skip to content

Commit

Permalink
feat: body 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SeieunYoo committed Aug 17, 2024
1 parent e952f5b commit d1f57c1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions apps/client/apis/studyApplyApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ export const studyApplyApi = {
return response.data;
},
applyStudy: async (studyId: number) => {
const response = await fetcher.post(`${apiPath.applyStudy}/${studyId}`, {
headers: {
Authorization: `Bearer ${process.env.NEXT_PUBLIC_DEV_AUTH_TOKEN}`,
},
});
const response = await fetcher.post(
`${apiPath.applyStudy}/${studyId}`,
null,
{
headers: {
Authorization: `Bearer ${process.env.NEXT_PUBLIC_DEV_AUTH_TOKEN}`,
},
}
);

if (!response.ok) {
const errorData = await response.json();
Expand Down

0 comments on commit d1f57c1

Please sign in to comment.