Add context with router
This commit is contained in:
parent
11bfad2844
commit
a41018159b
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user