Skip to content

Commit

Permalink
style: api res객체 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
SongInjae committed Oct 25, 2023
1 parent 50f3e10 commit 10d705a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apis/users/createUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export interface createUser {
}

const createUser = async ({ name, number }: createUser) => {
const res = await axiosClient.post('/register', { name, number });
return res.data;
const { data } = await axiosClient.post('/register', { name, number });
return data;
};

export default createUser;

0 comments on commit 10d705a

Please sign in to comment.