From 80484079d6dc6fbf36333ce2466e2d583bfd6087 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 28 Jan 2024 03:03:04 -0500 Subject: [PATCH] refactor: we dont need to register the router --- api/api.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/api.go b/api/api.go index 28e08bd..8f78dc7 100644 --- a/api/api.go +++ b/api/api.go @@ -3,7 +3,6 @@ package api import ( "context" "git.lumeweb.com/LumeWeb/portal/api/registry" - "git.lumeweb.com/LumeWeb/portal/api/router" "github.com/samber/lo" "github.com/spf13/viper" "go.uber.org/fx" @@ -39,9 +38,7 @@ func BuildApis(config *viper.Viper) fx.Option { } } - return fx.Module("api", fx.Options(options...), fx.Provide(func() router.ProtocolRouter { - return registry.GetRouter() - })) + return fx.Module("api", fx.Options(options...)) } func SetupLifecycles(lifecycle fx.Lifecycle, protocols []registry.API) {