Skip to content

Commit

Permalink
fix: login api 경로 수정 (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-noo authored Aug 12, 2022
1 parent cb8905e commit 3eef23d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/api/postLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const postLogin = async ({ code }: PostLoginRequestParams) => {
PostLoginResponseData,
AxiosResponse<PostLoginResponseData>,
PostLoginRequestParams
>(`/api/auth/login/token?code=${code}`);
>(`/api/auth/login?code=${code}`);
return response.data;
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/mocks/tokenHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { rest } from 'msw';
const EXPIRED_TIME = 30 * 60000;

export const tokenHandlers = [
rest.post('/api/auth/login/token', (req, res, ctx) => {
rest.post('/api/auth/login', (req, res, ctx) => {
const code = req.url.searchParams.get('code');

if (!code) {
Expand Down

0 comments on commit 3eef23d

Please sign in to comment.