(c *gin.Context)
| 88 | } |
| 89 | |
| 90 | func 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 | |
| 100 | func (h *BaseHandlers) requireSessionInWorkspace( |
| 101 | ctx context.Context, |
no outgoing calls
no test coverage detected