Skip to content

Commit

Permalink
refactor: 로그인 목 핸들러 응답 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Leejin-Yang committed Oct 13, 2023
1 parent ca740ba commit bcdd9d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mocks/handlers/loginHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export const loginHandlers = [
return res(ctx.status(200), ctx.cookie('mockSessionId', 'abc'));
}

return res(ctx.json({ code: 401, message: 'Unauthorized - funeat' }));
return res(
ctx.status(401),
ctx.json({ code: 401, message: 'Unauthorized - funeat' })
);
}),

rest.get('/api/admin/logged-check', (req, res, ctx) => {
Expand Down

0 comments on commit bcdd9d5

Please sign in to comment.