aboutsummaryrefslogtreecommitdiff
path: root/caronte.go
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-04-13 15:12:35 +0000
committerEmiliano Ciavatta2020-04-13 15:12:35 +0000
commita56a4e391d541ae05de0203f3d493edc3b04681d (patch)
treeab9344a650305aafb5afe552dc8cad63684de643 /caronte.go
parent7113463dead05631339fdab94de9440201c42489 (diff)
Add AddRoute tests
Diffstat (limited to 'caronte.go')
-rw-r--r--caronte.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/caronte.go b/caronte.go
index a6fa584..c1a8a29 100644
--- a/caronte.go
+++ b/caronte.go
@@ -24,8 +24,9 @@ func main() {
log.WithError(err).Fatal("failed to connect to MongoDB")
}
+ rulesManager := NewRulesManager(storage)
router := gin.Default()
- ApplicationRoutes(router)
+ ApplicationRoutes(router, rulesManager)
err = router.Run(fmt.Sprintf("%s:%v", *bindAddress, *bindPort))
if err != nil {
log.WithError(err).Fatal("failed to create the server")