summaryrefslogtreecommitdiffhomepage
path: root/HTTP.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-28 16:41:22 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-28 16:41:22 -0400
commit2cb51e23ba6d881e94f36baa9b8e21b80951880c (patch)
treef094a88cc8083984a25d2138c08c51627d47d10e /HTTP.hs
parentd149bf03647b09caa2af9e55a392251e4d619640 (diff)
downloadkeysafe-2cb51e23ba6d881e94f36baa9b8e21b80951880c.tar.gz
cleanup
Diffstat (limited to 'HTTP.hs')
-rw-r--r--HTTP.hs5
1 files changed, 0 insertions, 5 deletions
diff --git a/HTTP.hs b/HTTP.hs
index 10b0d47..f1e9e39 100644
--- a/HTTP.hs
+++ b/HTTP.hs
@@ -35,9 +35,6 @@ type HttpAPI =
:<|> "keysafe" :> V1 :> "stats" :> "countobjects" :> POWParam
:> Get '[JSON] (ProofOfWorkRequirement CountResult)
-newtype APIVersion = APIVersion Int
- deriving (Generic)
-
type V1 = "v1"
newtype Motd = Motd Text
@@ -57,8 +54,6 @@ type POWParam = QueryParam "proofofwork" ProofOfWork
type ObjectIdent = Capture "ident" StorableObjectIdent
-instance ToJSON APIVersion
-instance FromJSON APIVersion
instance ToJSON Motd
instance FromJSON Motd
instance ToJSON t => ToJSON (ProofOfWorkRequirement t)