Split user and workspace contexts

This commit is contained in:
2024-11-03 22:02:39 +01:00
parent c8cc854fd6
commit 927d1feb05
3 changed files with 34 additions and 29 deletions

View File

@@ -10,7 +10,7 @@ import (
type HandlerContext struct {
UserID int
UserRole string
Workspace *models.Workspace // Will be nil for non-workspace endpoints
Workspace *models.Workspace
}
type contextKey string