added serverSettings load method
parent
45d1759fff
commit
ad7531b6db
3
main.go
3
main.go
|
@ -24,6 +24,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"git.umbach.dev/app-idea/rest-api/modules/config"
|
"git.umbach.dev/app-idea/rest-api/modules/config"
|
||||||
"git.umbach.dev/app-idea/rest-api/modules/database"
|
"git.umbach.dev/app-idea/rest-api/modules/database"
|
||||||
|
"git.umbach.dev/app-idea/rest-api/modules/serversettings"
|
||||||
"git.umbach.dev/app-idea/rest-api/routers/router"
|
"git.umbach.dev/app-idea/rest-api/routers/router"
|
||||||
|
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
@ -45,6 +46,8 @@ func main() {
|
||||||
router.SetupRoutes(app)
|
router.SetupRoutes(app)
|
||||||
|
|
||||||
database.InitDatabase()
|
database.InitDatabase()
|
||||||
|
serversettings.LoadServerSettings()
|
||||||
|
|
||||||
app.Listen(cfg.Server.Host)
|
app.Listen(cfg.Server.Host)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue