Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupRoutes ¶
func SetupRoutes(router *gin.Engine, db *gorm.DB, cfg *config.Config, teamsSvc *services.TeamsService, samlMiddleware *samlsp.Middleware, hooks enterprise.Hooks, localAuth services.LocalAuthService, announcementsGetter func() []byte)
SetupRoutes configures all application routes. teamsSvc may be nil when Teams integration is disabled. samlMiddleware may be nil when SSO is not configured (all routes open). localAuth may be nil when local auth is not configured. hooks contains enterprise extension points; OSS callers pass enterprise.NewNoOp(). announcementsGetter returns the cached announcement JSON from the telemetry worker.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.