(token: string)
| 97 | }; |
| 98 | |
| 99 | export const getWorkspaceInvite = async (token: string) => { |
| 100 | const response = await api.get<WorkspaceInvite>(`/workspaces/invite/${token}`); |
| 101 | return response.data; |
| 102 | }; |
| 103 | |
| 104 | export const joinWorkspaceByToken = async (token: string) => { |
| 105 | const response = await api.post<{ message: string, workspaceId: number }>(`/workspaces/join/${token}`); |