This commit is contained in:
lbenedar
2026-03-17 17:58:22 +03:00
parent 850c006d46
commit 639e75dd6c
3 changed files with 73 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import (
"os"
"time"
"gitea.local.lab/Lbenedar/greenlight/internal/data"
_ "github.com/lib/pq"
)
@@ -18,6 +19,7 @@ const version = "1.0.0"
type application struct {
config config
logger *log.Logger
models data.Models
}
type config struct {
@@ -81,6 +83,7 @@ func main() {
app := &application{
config: cfg,
logger: logger,
models: data.NewModels(db),
}
srv := &http.Server{