From 752ee52dcd487253bc1662b1ba157732f73d27cf Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 12 Feb 2024 13:57:52 +0000 Subject: wip: mating EPs with Operations --- cmd/web/main.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'cmd/web/main.go') diff --git a/cmd/web/main.go b/cmd/web/main.go index a8b8cb4..7e25124 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -12,9 +12,10 @@ import ( ) type application struct { - logger *slog.Logger - operations *models.OperationModel - organisations *models.OrganisationModel + logger *slog.Logger + operations *models.OperationModel + organisations *models.OrganisationModel + engagement_strategies *models.EngagementStrategyModel } func main() { @@ -34,9 +35,10 @@ func main() { defer db.Close() app := &application{ - logger: logger, - operations: &models.OperationModel{DB: db}, - organisations: &models.OrganisationModel{DB: db}, + logger: logger, + operations: &models.OperationModel{DB: db}, + organisations: &models.OrganisationModel{DB: db}, + engagement_strategies: &models.EngagementStrategyModel{DB: db}, } // mux := http.NewServeMux() -- cgit v1.2.3