mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 19:54:47 +00:00
fix eos json response
This commit is contained in:
committed by
Keagan McClelland
parent
a68632a608
commit
e3705b4845
@@ -147,7 +147,12 @@ data EosRes = EosRes
|
|||||||
, eosResHeadline :: Text
|
, eosResHeadline :: Text
|
||||||
, eosResReleaseNotes :: ReleaseNotes
|
, eosResReleaseNotes :: ReleaseNotes
|
||||||
} deriving (Eq, Show, Generic)
|
} deriving (Eq, Show, Generic)
|
||||||
instance ToJSON EosRes
|
instance ToJSON EosRes where
|
||||||
|
toJSON EosRes { .. } = object
|
||||||
|
[ "version" .= eosResVersion
|
||||||
|
, "headline" .= eosResHeadline
|
||||||
|
, "release-notes" .= eosResReleaseNotes
|
||||||
|
]
|
||||||
instance ToContent EosRes where
|
instance ToContent EosRes where
|
||||||
toContent = toContent . toJSON
|
toContent = toContent . toJSON
|
||||||
instance ToTypedContent EosRes where
|
instance ToTypedContent EosRes where
|
||||||
|
|||||||
Reference in New Issue
Block a user