From 56e182358937d289c3ab8f3ecb01506373e2cb57 Mon Sep 17 00:00:00 2001 From: Mats Rauhala Date: Sat, 29 Sep 2018 22:24:21 +0300 Subject: [PATCH] Fix api --- src/API.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API.hs b/src/API.hs index 60d463f..8870dca 100644 --- a/src/API.hs +++ b/src/API.hs @@ -29,7 +29,7 @@ instance MimeRender HTML Docs where instance Accept HTML where contentType _ = "text" // "html" /: ("charset", "utf-8") -type API = "ipfs" :> IPFS.API +type API = "api" :> ("ipfs" :> IPFS.API) -type DocumentedAPI = "api" :> API +type DocumentedAPI = API :<|> "help" :> Get '[PlainText, HTML] Docs