From 0dd6bf30d138da022008989d717464c70074aa7b Mon Sep 17 00:00:00 2001 From: soonki-98 Date: Fri, 25 Nov 2022 23:54:02 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20=EC=9C=A0=EC=A0=80=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EC=A1=B0=ED=9A=8C=20api=20=EC=83=9D=EC=84=B1=20#28?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/users.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/apis/users.tsx b/src/apis/users.tsx index 569ff17..f7e8f77 100644 --- a/src/apis/users.tsx +++ b/src/apis/users.tsx @@ -1,5 +1,5 @@ -import { LoginType } from "@lib/types/user"; -import APIS from "./network"; +import { LoginType } from '@lib/types/user'; +import APIS from './network'; /** * 로그인하기 @@ -18,3 +18,7 @@ export function login(data: LoginType) { } }); } + +export const getUserInfo = async (userID: string) => { + return await APIS.instance.get(`/api/user/${userID}`); +};