Skip to content

Commit 3d8fd9c

Browse files
committed
fix: 워크스페이스 공개 범위 전환 api URL 수정
1 parent a048f41 commit 3d8fd9c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import { Post } from "@/shared/api";
1+
import { Patch } from "@/shared/api";
22
import { SetWorkspaceStatusResponse } from "../model/workspaceInviteTypes";
33

44
export const setWorkspaceStatusToPrivate = async (id: string) => {
5-
// TODO: URL 맞게 고치기.
65
const url = `/api/workspace/${id}/private`;
7-
await Post<SetWorkspaceStatusResponse, null>(url);
6+
await Patch<SetWorkspaceStatusResponse, null>(url);
87
};
98

109
export const setWorkspaceStatusToPublic = async (id: string) => {
11-
// TODO: URL 맞게 고치기.
1210
const url = `/api/workspace/${id}/public`;
13-
await Post<SetWorkspaceStatusResponse, null>(url);
11+
await Patch<SetWorkspaceStatusResponse, null>(url);
1412
};

0 commit comments

Comments
 (0)