}
type ApiConfig struct {
- Domain string `toml:"domain"`
- JwtSecret string `toml:"jwt_secret"`
+ api.Config
+ Domain string `toml:"domain"`
}
type Config struct {
App: AppConfig{
PublicDir: "./public",
},
- Api: ApiConfig{
- JwtSecret: "secret",
- },
}
c.LogConfiguration.SetToDefaults()
panic(err)
}
- api.SetJwtSecretKey(C.Api.JwtSecret)
+ api.SetConfig(C.Api.Config)
db.Init(C.Db, C.Redis)
"/",
"/signup",
"/signin",
+ "/reset-password",
+ "/change-password",
"/signout",
"/me",
+ "/account",
"/otp/enroll",
"/otp/validate",
"/not_confirmed",