From 60de5a0df46775a5257a6755f128486b20950ce6 Mon Sep 17 00:00:00 2001 From: "Thomas R. Koll" Date: Tue, 19 Jan 2016 09:11:39 +0100 Subject: [PATCH] api: move endpoint for accounttransaction to /account/:name --- hledger-api/hledger-api.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hledger-api/hledger-api.hs b/hledger-api/hledger-api.hs index e6fcf5a41..e2f4d79ec 100644 --- a/hledger-api/hledger-api.hs +++ b/hledger-api/hledger-api.hs @@ -80,9 +80,7 @@ type HledgerApi = :<|> "prices" :> Get '[JSON] [MarketPrice] :<|> "commodities" :> Get '[JSON] [Commodity] :<|> "accounts" :> Get '[JSON] [Account] - :<|> "reports" :> - "accounttransactions" :> Capture "acct" AccountName :> Get '[JSON] AccountTransactionsReport - :<|> Raw + :<|> "accounts" :> Capture "acct" AccountName :> Get '[JSON] AccountTransactionsReport hledgerApiApp :: Journal -> Wai.Application hledgerApiApp j = Servant.serve api server