diff --git a/src/apis/login.js b/src/apis/login.js index 5cbcb9d..a81b635 100644 --- a/src/apis/login.js +++ b/src/apis/login.js @@ -1,10 +1,10 @@ import { instance } from "./instance"; -export const postLogin = async (username, password) => { +export const postLogin = async (form) => { try { const response = await instance.post("/login", { - username, - password, + username: form.username, + password: form.password, }); console.log(response); } catch (err) {