Documentation ¶ Index ¶ type Config func (c Config) RegisterRoutes(router fiber.Router, client *ent.Client, logger *zap.Logger) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { // AccessTokens is the list of access tokens for the admin API. // These tokens cannot be used with non-admin endpoints. AccessTokens []string `json:"accessTokens"` } Config stores the configuration for the admin API. func (Config) RegisterRoutes ¶ func (c Config) RegisterRoutes(router fiber.Router, client *ent.Client, logger *zap.Logger) RegisterRoutes registers the admin API routes. Source Files ¶ View all Source files admin.go Click to show internal directories. Click to hide internal directories.