api

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

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.

Directories

Path Synopsis
dto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL