Skip to content

Commit

Permalink
feat: body에 parameter 보내기
Browse files Browse the repository at this point in the history
  • Loading branch information
shinwonse committed Aug 30, 2023
1 parent c65b978 commit 99eee54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/api/redirect/apple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ import { generateUrl } from '@/shared/utils/generateUrl';
const appleLoginCallback = (code: string, name?: string, email?: string) => {
return axios({
baseURL: NEXT_PUBLIC_API_BASE_URI,
url: generateUrl({ url: '/apple', params: { code, name, email } }),
url: generateUrl({ url: '/apple' }),
method: 'post',
validateStatus: null,
headers: { 'Content-Type': 'application/json' },
data: { code, name, email },
});
};

export default async function handler(
req: NextApiRequest,
res: NextApiResponse
res: NextApiResponse기

Check failure on line 22 in src/pages/api/redirect/apple.ts

View workflow job for this annotation

GitHub Actions / CI (16)

Cannot find name 'NextApiResponse기'. Did you mean 'NextApiResponse'?
) {
const code = req.body.code?.toString();
const name = req.body.name?.toString();
Expand Down

0 comments on commit 99eee54

Please sign in to comment.