Skip to content

Commit

Permalink
[Feat] 유저 정보 조회 api 생성 soolsul#28
Browse files Browse the repository at this point in the history
  • Loading branch information
soonki-98 committed Nov 25, 2022
1 parent 2c443cb commit 0dd6bf3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/apis/users.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LoginType } from "@lib/types/user";
import APIS from "./network";
import { LoginType } from '@lib/types/user';
import APIS from './network';

/**
* 로그인하기
Expand All @@ -18,3 +18,7 @@ export function login(data: LoginType) {
}
});
}

export const getUserInfo = async (userID: string) => {
return await APIS.instance.get(`/api/user/${userID}`);
};

0 comments on commit 0dd6bf3

Please sign in to comment.