diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-12 13:57:52 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-12 13:57:52 +0000 |
commit | 752ee52dcd487253bc1662b1ba157732f73d27cf (patch) | |
tree | a2c3c3d36177fc9ba90fcc1d85798ba943268579 /cmd/web/main.go | |
parent | c1c0ddbf61860b863f1e3ac11caea7407eef2412 (diff) |
wip: mating EPs with Operations
Diffstat (limited to 'cmd/web/main.go')
-rw-r--r-- | cmd/web/main.go | 14 |
1 files changed, 8 insertions, 6 deletions
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() |