Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Datakitpage/Datakit
/ switchWorkspace
Function
switchWorkspace
frontend/src/lib/api/workspaceService.ts:38–40 ·
view source on GitHub ↗
(id: string)
Source
from the content-addressed store, hash-verified
36
37
// Switch to a different workspace
38
async
switchWorkspace(id: string): Promise<void> {
39
await
apiClient.post(`/workspaces/${id}/switch`);
40
},
41
42
// Delete a workspace
43
async
deleteWorkspace(id: string): Promise<void> {
Callers
nothing calls this directly
Calls
1
post
Method · 0.80
Tested by
no test coverage detected