Skip to content

Commit

Permalink
🚚 Rename: 변수명 res, formData로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-paik committed Oct 30, 2023
1 parent 749b5b7 commit 084759b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/api/auth.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { instance, imgInstance } from './axiosInstance';

/* 로그인 */
export const postUserLogin = async (email, password) => {
const loginData = {
user: {
email: email,
password: password,
},
export const postUserLogin = async (formData) => {
const res = {
user: {
email: formData.email,
password: formData.password,
}
};
const response = await instance.post('/user/login', loginData);
const response = await instance.post('/user/login', res);
return response.data;
};

Expand Down

0 comments on commit 084759b

Please sign in to comment.