Expose the keys via SS API

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

View file

@ -71,8 +71,14 @@ func QueryDeviceKeys(
return util.JSONResponse{
Code: 200,
JSON: struct {
DeviceKeys interface{} `json:"device_keys"`
}{queryRes.DeviceKeys},
DeviceKeys interface{} `json:"device_keys"`
MasterKeys interface{} `json:"master_keys"`
SelfSigningKeys interface{} `json:"self_signing_keys"`
}{
queryRes.DeviceKeys,
queryRes.MasterKeys,
queryRes.SelfSigningKeys,
},
}
}