From d149bf03647b09caa2af9e55a392251e4d619640 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 28 Aug 2016 16:40:24 -0400 Subject: simplify http api, remove apiversion Not needed since all routes are tagged with the api version. --- HTTP.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'HTTP.hs') 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 -- cgit v1.2.3