diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-11 13:57:29 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-11 13:57:29 +0200 |
commit | 2da5b12c31074591eaf16929b760322b98f189e8 (patch) | |
tree | 407b699688edddca381ca80e5ecea9458d748cc1 /cmd/app | |
parent | 299b6b6d9fb879c06e675ef240f361348629ff6c (diff) | |
download | Front-2da5b12c31074591eaf16929b760322b98f189e8.tar.gz Front-2da5b12c31074591eaf16929b760322b98f189e8.tar.zst Front-2da5b12c31074591eaf16929b760322b98f189e8.zip |
Mails.
Diffstat (limited to 'cmd/app')
-rw-r--r-- | cmd/app/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/app/main.go b/cmd/app/main.go index 28eb775..e414bf2 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go | |||
@@ -22,12 +22,12 @@ type AppConfig struct { | |||
22 | 22 | ||
23 | type ApiConfig struct { | 23 | type ApiConfig struct { |
24 | api.Config | 24 | api.Config |
25 | Domain string `toml:"domain"` | ||
26 | } | 25 | } |
27 | 26 | ||
28 | type Config struct { | 27 | type Config struct { |
29 | App AppConfig | 28 | App AppConfig |
30 | Api ApiConfig | 29 | Api ApiConfig |
30 | Mail api.MailConfig | ||
31 | Db db.DBConfig | 31 | Db db.DBConfig |
32 | Redis db.RedisConfig | 32 | Redis db.RedisConfig |
33 | 33 | ||
@@ -61,6 +61,7 @@ func init() { | |||
61 | } | 61 | } |
62 | 62 | ||
63 | api.SetConfig(C.Api.Config) | 63 | api.SetConfig(C.Api.Config) |
64 | api.SetMailConfig(C.Mail) | ||
64 | 65 | ||
65 | db.Init(C.Db, C.Redis) | 66 | db.Init(C.Db, C.Redis) |
66 | 67 | ||
@@ -139,6 +140,7 @@ func main() { | |||
139 | "/", | 140 | "/", |
140 | "/signup", | 141 | "/signup", |
141 | "/signin", | 142 | "/signin", |
143 | "/confirm", | ||
142 | "/reset-password", | 144 | "/reset-password", |
143 | "/change-password", | 145 | "/change-password", |
144 | "/signout", | 146 | "/signout", |