Files
hanko/backend/dto/config.go
2022-06-09 14:36:00 +02:00

16 lines
398 B
Go

package dto
import (
"github.com/teamhanko/hanko/config"
)
// PublicConfig is the part of the configuration that will be shared with the frontend
type PublicConfig struct {
Password config.Password `json:"password"`
}
// FromConfig Returns a PublicConfig from the Application configuration
func FromConfig(config config.Config) PublicConfig {
return PublicConfig{Password: config.Password}
}