aboutsummaryrefslogtreecommitdiff
path: root/keyserver/keyserver.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-06-08 15:51:07 +0100
committerGitHub <noreply@github.com>2020-06-08 15:51:07 +0100
commit4f171c56a832c836b0eb21650ee84d56e451dd6a (patch)
treee92059f1dbb784c978b60897d6ac13983d51c1b4 /keyserver/keyserver.go
parentcdb9a115715bd5a9e84df5bc95060e2dac1f6d89 (diff)
Split out SetupFooComponent (#1106)
* Split out adding HTTP routes from making internal APIs for clarity * Split out more components * Split out more things * Finish converting * internal mux for internal routes
Diffstat (limited to 'keyserver/keyserver.go')
-rw-r--r--keyserver/keyserver.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/keyserver/keyserver.go b/keyserver/keyserver.go
index 4e785cbc..1eb73054 100644
--- a/keyserver/keyserver.go
+++ b/keyserver/keyserver.go
@@ -15,18 +15,18 @@
package keyserver
import (
+ "github.com/gorilla/mux"
"github.com/matrix-org/dendrite/clientapi/auth/storage/accounts"
"github.com/matrix-org/dendrite/clientapi/auth/storage/devices"
- "github.com/matrix-org/dendrite/internal/basecomponent"
+ "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/keyserver/routing"
)
-// SetupFederationSenderComponent sets up and registers HTTP handlers for the
-// FederationSender component.
-func SetupKeyServerComponent(
- base *basecomponent.BaseDendrite,
+// AddPublicRoutes registers HTTP handlers for CS API calls
+func AddPublicRoutes(
+ router *mux.Router, cfg *config.Dendrite,
deviceDB devices.Database,
accountsDB accounts.Database,
) {
- routing.Setup(base.PublicAPIMux, base.Cfg, accountsDB, deviceDB)
+ routing.Setup(router, cfg, accountsDB, deviceDB)
}