diff options
author | Emiliano Ciavatta | 2020-04-13 15:12:35 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-04-13 15:12:35 +0000 |
commit | a56a4e391d541ae05de0203f3d493edc3b04681d (patch) | |
tree | ab9344a650305aafb5afe552dc8cad63684de643 /caronte.go | |
parent | 7113463dead05631339fdab94de9440201c42489 (diff) |
Add AddRoute tests
Diffstat (limited to 'caronte.go')
-rw-r--r-- | caronte.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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") |