try fixing json key names in secret retrieve endpoint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -17,12 +17,12 @@ const nonceSize = 12
|
|||||||
|
|
||||||
// We use the json:"-" field tag to prevent showing these details to the user
|
// We use the json:"-" field tag to prevent showing these details to the user
|
||||||
type Secret struct {
|
type Secret struct {
|
||||||
SecretId int `db:"SecretId"`
|
SecretId int `db:"SecretId" json:"secretId"`
|
||||||
SafeId int `db:"SafeId"`
|
SafeId int `db:"SafeId" json:"safeId"`
|
||||||
DeviceName string `db:"DeviceName"`
|
DeviceName string `db:"DeviceName" json:"deviceName"`
|
||||||
DeviceCategory string `db:"DeviceCategory"`
|
DeviceCategory string `db:"DeviceCategory" json:"deviceCategory"`
|
||||||
UserName string `db:"UserName"`
|
UserName string `db:"UserName" json:"userName"`
|
||||||
Secret string `db:"Secret"`
|
Secret string `db:"Secret" json:"secret"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Used for querying all secrets the user has access to
|
// Used for querying all secrets the user has access to
|
||||||
|
Reference in New Issue
Block a user