aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-key-server/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dendrite-key-server/main.go')
-rw-r--r--cmd/dendrite-key-server/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/dendrite-key-server/main.go b/cmd/dendrite-key-server/main.go
index b557cbd9..813ddddc 100644
--- a/cmd/dendrite-key-server/main.go
+++ b/cmd/dendrite-key-server/main.go
@@ -24,9 +24,9 @@ func main() {
base := setup.NewBaseDendrite(cfg, "KeyServer", true)
defer base.Close() // nolint: errcheck
- userAPI := base.UserAPIClient()
+ intAPI := keyserver.NewInternalAPI()
- keyserver.AddPublicRoutes(base.PublicAPIMux, base.Cfg, userAPI)
+ keyserver.AddInternalRoutes(base.InternalAPIMux, intAPI)
base.SetupAndServeHTTP(string(base.Cfg.Bind.KeyServer), string(base.Cfg.Listen.KeyServer))