aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dbasik-api/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dbasik-api/main.go')
-rw-r--r--cmd/dbasik-api/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/dbasik-api/main.go b/cmd/dbasik-api/main.go
index f132c50..b4850f8 100644
--- a/cmd/dbasik-api/main.go
+++ b/cmd/dbasik-api/main.go
@@ -55,6 +55,7 @@ type config struct {
type application struct {
config config
logger *slog.Logger
+ models Models
}
func main() {
@@ -94,6 +95,7 @@ func main() {
app := &application{
config: cfg,
logger: logger,
+ models: NewModels(db),
}
// Declare an http server which listens provided in the config struct and has