summaryrefslogtreecommitdiffhomepage
path: root/HTTP.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-28 16:40:24 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-28 16:40:24 -0400
commitd149bf03647b09caa2af9e55a392251e4d619640 (patch)
tree6e2f3336d48205041fb515dbdd550a31c16dab22 /HTTP.hs
parent9908ae571c5b4086047443c8560cb65838b0caa2 (diff)
downloadkeysafe-d149bf03647b09caa2af9e55a392251e4d619640.tar.gz
simplify http api, remove apiversion
Not needed since all routes are tagged with the api version.
Diffstat (limited to 'HTTP.hs')
-rw-r--r--HTTP.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/HTTP.hs b/HTTP.hs
index c7eb21d..10b0d47 100644
--- a/HTTP.hs
+++ b/HTTP.hs
@@ -26,8 +26,7 @@ import qualified Raaz.Core.Encode as Raaz
-- | Keysafe's http API
type HttpAPI =
- "keysafe" :> "apiversion" :> Get '[JSON] APIVersion
- :<|> "keysafe" :> V1 :> "motd" :> Get '[JSON] Motd
+ "keysafe" :> V1 :> "motd" :> Get '[JSON] Motd
:<|> "keysafe" :> V1 :> "objects" :> ObjectIdent :> POWParam
:> Get '[JSON] (ProofOfWorkRequirement StorableObject)
:<|> "keysafe" :> V1 :> "objects" :> ObjectIdent :> POWParam