summaryrefslogtreecommitdiffhomepage
path: root/HTTP.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-12 22:59:03 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-12 22:59:03 -0400
commite333a779338ff8bccdc4225fc953d6f4f0226db0 (patch)
treec07f1165ba101c2b10e914170fb07628e1d08d3a /HTTP.hs
parent13c408d2295597540f0b2dfb6f7b86e739876c90 (diff)
downloadkeysafe-e333a779338ff8bccdc4225fc953d6f4f0226db0.tar.gz
add proof of work to countobjects
In this case, an empty string is hashed to generate the PoW.
Diffstat (limited to 'HTTP.hs')
-rw-r--r--HTTP.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/HTTP.hs b/HTTP.hs
index 702a806..e5e4d85 100644
--- a/HTTP.hs
+++ b/HTTP.hs
@@ -36,8 +36,8 @@ type HttpAPI =
:<|> "keysafe" :> V1 :> "objects" :> ObjectIdent :> POWParam
:> ReqBody '[OctetStream] StorableObject
:> Put '[JSON] (POWGuarded StoreResult)
- :<|> "keysafe" :> V1 :> "stats" :> "countobjects"
- :> Get '[JSON] CountResult
+ :<|> "keysafe" :> V1 :> "stats" :> "countobjects" :> POWParam
+ :> Get '[JSON] (POWGuarded CountResult)
type V1 = "v1"