We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a048f41 commit 3d8fd9cCopy full SHA for 3d8fd9c
apps/frontend/src/features/workspace/api/workspaceStatusApi.ts
@@ -1,14 +1,12 @@
1
-import { Post } from "@/shared/api";
+import { Patch } from "@/shared/api";
2
import { SetWorkspaceStatusResponse } from "../model/workspaceInviteTypes";
3
4
export const setWorkspaceStatusToPrivate = async (id: string) => {
5
- // TODO: URL 맞게 고치기.
6
const url = `/api/workspace/${id}/private`;
7
- await Post<SetWorkspaceStatusResponse, null>(url);
+ await Patch<SetWorkspaceStatusResponse, null>(url);
8
};
9
10
export const setWorkspaceStatusToPublic = async (id: string) => {
11
12
const url = `/api/workspace/${id}/public`;
13
14
0 commit comments