23 lines
782 B
Go
23 lines
782 B
Go
package api
|
|
|
|
import (
|
|
mwa "git.sendico.io/tech/sxchnge/product/auth/config"
|
|
"git.sendico.io/tech/sxchnge/product/notifications"
|
|
"git.sendico.io/tech/sxchnge/product/providers/sendico"
|
|
verificationconfig "git.sendico.io/tech/sxchnge/product/verification/config"
|
|
)
|
|
|
|
type Config struct {
|
|
Sendico *sendico.Config `yaml:"sendico"`
|
|
// nil preserves the legacy v1 mount; an explicit empty list installs no API.
|
|
Versions []Mount `yaml:"versions"`
|
|
Notifications *notifications.Config `yaml:"notifications"`
|
|
Mw *mwa.Config `yaml:"middleware"`
|
|
AuthStorage *mwa.AuthStorageConfig `yaml:"auth_storage"`
|
|
Verification *verificationconfig.Config `yaml:"verification"`
|
|
}
|
|
|
|
func (c *Config) SharedConfig() *Config {
|
|
return c
|
|
}
|