Documentation
¶
Overview ¶
Package user owns the ordinary user's independent HTTP surface. It must not register any administrator or upstream-management API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBudgetRoutes ¶
RegisterBudgetRoutes must be mounted inside ordinary-user session auth, not admin auth. ResolveGatewayUser independently rejects missing/disabled scope.
func RegisterRoutes ¶
func RegisterRoutes(r chi.Router, db *store.DB, sessions *auth.UserSessionManager, secureMode string, models func() ModelCatalog)
RegisterRoutes is mounted OUTSIDE the admin group. It owns its cookie-only auth and same-origin boundaries; no bearer/confirmation header grants access.