MCPcopy Create free account
hub / github.com/GmpABR/NexusFlow / getWorkspace

Function getWorkspace

frontend/src/api/workspaces.ts:58–61  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

56};
57
58export const getWorkspace = async (id: number) => {
59 const response = await api.get<Workspace>(`/workspaces/${id}`);
60 return response.data;
61};
62
63export const addWorkspaceMember = async (workspaceId: number, username: string, role: string = 'Member') => {
64 const response = await api.post<WorkspaceMember>(`/workspaces/${workspaceId}/members`, { username, role });

Callers 1

fetchWorkspaceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected