Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/api/service/group-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const groupServiceRemote = () => ({
// 모임 이미지 사전 업로드 (POST /groups/images/upload) - multipart/form-data

createGroup: (payload: CreateGroupPayload) => {
return api.post<CreateGroupResponse>('/groups/create', payload);
return apiV2.post<CreateGroupResponse>('/groups/create', payload);
},

getGroupDetails: (payload: GroupIdPayload) => {
Expand All @@ -60,6 +60,6 @@ export const groupServiceRemote = () => ({
},

uploadGroupImages: (payload: FormData) => {
return api.post<PreUploadGroupImageResponse>('/groups/images/upload', payload);
return apiV2.post<PreUploadGroupImageResponse>('/groups/images/upload', payload);
},
});
1 change: 1 addition & 0 deletions src/lib/schema/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const createGroupSchema = z.object({
images: z
.array(
z.object({
imageKey: z.string(),
sortOrder: z.number(),
imageUrl440x240: z.string(),
imageUrl100x100: z.string(),
Expand Down
3 changes: 1 addition & 2 deletions src/types/service/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ export interface PreUploadGroupImagePayload {

export interface PreUploadGroupImageResponse {
images: {
imageKey: string;
sortOrder: number;
imageUrl440x240: string;
imageUrl100x100: string;
}[];
}

Expand Down
Loading