Expose the keys via CS API

This commit is contained in:
Neil Alexander 2021-07-28 15:58:18 +01:00
parent a6bb3fd0ac
commit 4e36090846
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -115,8 +115,11 @@ func QueryKeys(req *http.Request, keyAPI api.KeyInternalAPI) util.JSONResponse {
return util.JSONResponse{ return util.JSONResponse{
Code: 200, Code: 200,
JSON: map[string]interface{}{ JSON: map[string]interface{}{
"device_keys": queryRes.DeviceKeys, "device_keys": queryRes.DeviceKeys,
"failures": queryRes.Failures, "master_keys": queryRes.MasterKeys,
"self_signing_keys": queryRes.SelfSigningKeys,
"user_signing_keys": queryRes.UserSigningKeys,
"failures": queryRes.Failures,
}, },
} }
} }