MCPcopy Create free account
hub / github.com/compozy/agh / workspaceRefFromRoute

Function workspaceRefFromRoute

internal/api/core/workspace_scope.go:90–98  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

88}
89
90func workspaceRefFromRoute(c *gin.Context) string {
91 if c == nil {
92 return ""
93 }
94 if value := strings.TrimSpace(c.Param("workspace_id")); value != "" {
95 return value
96 }
97 return strings.TrimSpace(c.Param("id"))
98}
99
100func (h *BaseHandlers) requireSessionInWorkspace(
101 ctx context.Context,

Callers 4

resolveWorkspaceScopeMethod · 0.85
GetWorkspaceMethod · 0.85
UpdateWorkspaceMethod · 0.85
DeleteWorkspaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected