Add context with router

This commit is contained in:
perp 2024-06-02 13:04:45 +01:00
parent 11bfad2844
commit a41018159b

View File

@ -2,9 +2,10 @@ package main
import ( import (
_ "embed" _ "embed"
"fmt"
"git.supernets.org/perp/gopay/internal/config" "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 //go:embed config.toml
@ -17,5 +18,6 @@ func main() {
cfg := config.Parse(content) cfg := config.Parse(content)
config.SetupLogger(cfg) config.SetupLogger(cfg)
fmt.Println(cfg.Database) ctx := context.New(cfg)
router.New(ctx)
} }