X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=cmd%2Fapp%2Fmain.go;h=a0463d260d0d839151ff18ee7f52ff57f622f249;hb=85545aba62546f219a9c9730945511412a3174ef;hp=65e8b5a49af92b4dbda73472595b33883aebea77;hpb=b94f3416c1afe6363249b46bf2b299dfe8e4007f;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git diff --git a/cmd/app/main.go b/cmd/app/main.go index 65e8b5a..a0463d2 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -21,8 +21,8 @@ type AppConfig struct { } type ApiConfig struct { - Domain string `toml:"domain"` - JwtSecret string `toml:"jwt_secret"` + api.Config + Domain string `toml:"domain"` } type Config struct { @@ -45,9 +45,6 @@ func (c *Config) SetToDefaults() { App: AppConfig{ PublicDir: "./public", }, - Api: ApiConfig{ - JwtSecret: "secret", - }, } c.LogConfiguration.SetToDefaults() @@ -63,7 +60,7 @@ func init() { panic(err) } - api.SetJwtSecretKey(C.Api.JwtSecret) + api.SetConfig(C.Api.Config) db.Init(C.Db, C.Redis) @@ -142,6 +139,8 @@ func main() { "/", "/signup", "/signin", + "/reset-password", + "/change-password", "/signout", "/me", "/otp/enroll",