diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-28 16:40:24 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-28 16:40:24 -0400 |
commit | d149bf03647b09caa2af9e55a392251e4d619640 (patch) | |
tree | 6e2f3336d48205041fb515dbdd550a31c16dab22 /HTTP.hs | |
parent | 9908ae571c5b4086047443c8560cb65838b0caa2 (diff) | |
download | keysafe-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.hs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |