From 10d705a21b967897cec691371dbd44990b00c0cb Mon Sep 17 00:00:00 2001 From: SongInJae Date: Wed, 25 Oct 2023 15:11:20 +0900 Subject: [PATCH] =?UTF-8?q?style:=20api=20res=EA=B0=9D=EC=B2=B4=20?= =?UTF-8?q?=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/users/createUser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apis/users/createUser.ts b/src/apis/users/createUser.ts index 8e17bd05..8ef6622f 100644 --- a/src/apis/users/createUser.ts +++ b/src/apis/users/createUser.ts @@ -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;