From 396219ef534093b45ad02cccc8ca9cf0f9742c40 Mon Sep 17 00:00:00 2001 From: Kegsay Date: Mon, 13 Jul 2020 16:02:35 +0100 Subject: Add boilerplate for key server APIs (#1196) Also add a README which outilnes how things will work. --- cmd/dendrite-key-server/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/dendrite-key-server/main.go') 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)) -- cgit v1.2.3