diff --git a/cmd/main.go b/cmd/main.go index 7c3fb9b..73229d5 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -2,9 +2,10 @@ package main import ( _ "embed" - "fmt" "git.supernets.org/perp/gopay/internal/config" + "git.supernets.org/perp/gopay/internal/context" + "git.supernets.org/perp/gopay/internal/router" ) //go:embed config.toml @@ -17,5 +18,6 @@ func main() { cfg := config.Parse(content) config.SetupLogger(cfg) - fmt.Println(cfg.Database) + ctx := context.New(cfg) + router.New(ctx) }