Skip to content

Commit

Permalink
chore: 불필요한 parameter 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxrxn committed Jul 9, 2024
1 parent 94fe872 commit c9b43e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/apis/user.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { APIJob, APIJobGroup } from '@/types/job';
import { APIUser, APIUserProfile } from '@/types/user';
import { publicApi } from '@/apis/core/axios';
import { AxiosRequestConfig } from 'axios';

const userAPI = {
getUserProfile: ({ userId }: { userId: APIUser['userId'] }) =>
publicApi.get<APIUserProfile>(`/service-api/users/${userId}/profile`),

getMyProfile: (config?: AxiosRequestConfig) =>
publicApi.get<APIUser>('/service-api/users/me', config),
getMyProfile: () => publicApi.get<APIUser>('/service-api/users/me'),

updateMyProfile: ({
nickname,
Expand Down

0 comments on commit c9b43e8

Please sign in to comment.