summaryrefslogtreecommitdiffstats
path: root/cmd/web/main.go
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-12 13:57:52 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-12 13:57:52 +0000
commit752ee52dcd487253bc1662b1ba157732f73d27cf (patch)
treea2c3c3d36177fc9ba90fcc1d85798ba943268579 /cmd/web/main.go
parentc1c0ddbf61860b863f1e3ac11caea7407eef2412 (diff)
wip: mating EPs with Operations
Diffstat (limited to 'cmd/web/main.go')
-rw-r--r--cmd/web/main.go14
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()