aboutsummaryrefslogtreecommitdiff
path: root/cmd/app
diff options
context:
space:
mode:
authorjloup <jeanloup.jamet@gmail.com>2018-05-11 13:57:29 +0200
committerjloup <jeanloup.jamet@gmail.com>2018-05-11 13:57:29 +0200
commit2da5b12c31074591eaf16929b760322b98f189e8 (patch)
tree407b699688edddca381ca80e5ecea9458d748cc1 /cmd/app
parent299b6b6d9fb879c06e675ef240f361348629ff6c (diff)
downloadFront-2da5b12c31074591eaf16929b760322b98f189e8.tar.gz
Front-2da5b12c31074591eaf16929b760322b98f189e8.tar.zst
Front-2da5b12c31074591eaf16929b760322b98f189e8.zip
Mails.
Diffstat (limited to 'cmd/app')
-rw-r--r--cmd/app/main.go4
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
23type ApiConfig struct { 23type ApiConfig struct {
24 api.Config 24 api.Config
25 Domain string `toml:"domain"`
26} 25}
27 26
28type Config struct { 27type 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",