Skip to content

Commit

Permalink
feat: login 핸들러 구현 #442
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgksqkr committed Dec 26, 2024
1 parent c70377f commit d800b8f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frontend-admin/src/mocks/handler/login.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { http, HttpResponse } from "msw";

import { MOCK_API_URL } from "@/constants/url";

const loginHandler = () => {
return new HttpResponse(null, { status: 200 });
};

const logoutHandler = () => {
return new HttpResponse(null, { status: 200 });
};

export const loginHandlers = [
http.post(MOCK_API_URL.login, loginHandler),
http.post(MOCK_API_URL.logout, logoutHandler),
];

0 comments on commit d800b8f

Please sign in to comment.