Add create user rest endpoint
diff --git a/core/kg/model/config.go b/core/kg/model/config.go
index fd8c034..cc556ff 100644
--- a/core/kg/model/config.go
+++ b/core/kg/model/config.go
@@ -17,6 +17,7 @@
SQL SQLConfig
HTTP HTTPConfig
GRPC GRPCConfig
+ App AppConfig
}
func NewConfig() *Config {
@@ -80,3 +81,15 @@
s.Port = defaultGRPCPort
}
}
+
+type AppConfig struct {
+ EnableSignUp *bool
+}
+
+func (s *AppConfig) SetDefaults() {
+ if s.EnableSignUp == nil {
+ s.EnableSignUp = NewBool(true)
+ }
+}
+
+func NewBool(b bool) *bool { return &b }