diff options
author | Kegsay <kegan@matrix.org> | 2020-07-13 16:02:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 16:02:35 +0100 |
commit | 396219ef534093b45ad02cccc8ca9cf0f9742c40 (patch) | |
tree | 4cf4eaf0a31cc2a3e42a9bb8be7f7e4d4a17e982 /cmd/dendrite-key-server/main.go | |
parent | 3178afde2c432d5886fa51e1eacfb1e770da39a6 (diff) |
Add boilerplate for key server APIs (#1196)
Also add a README which outilnes how things will work.
Diffstat (limited to 'cmd/dendrite-key-server/main.go')
-rw-r--r-- | cmd/dendrite-key-server/main.go | 4 |
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)) |