admin

package
v0.0.0-...-5a5e713 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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