Fix wiring for keyserver in API mode

This commit is contained in:
Neil Alexander 2021-08-09 10:11:21 +01:00
parent 1195dd7139
commit 3bf2b88dac
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -120,6 +120,11 @@ func main() {
Impl: userAPI, Impl: userAPI,
} }
} }
// needs to be after the SetUserAPI call above
if base.UseHTTPAPIs {
keyserver.AddInternalRoutes(base.InternalAPIMux, keyAPI)
keyAPI = base.KeyServerHTTPClient()
}
eduInputAPI := eduserver.NewInternalAPI( eduInputAPI := eduserver.NewInternalAPI(
base, cache.New(), userAPI, base, cache.New(), userAPI,