api: move endpoint for accounttransaction to /account/:name

This commit is contained in:
Thomas R. Koll 2016-01-19 09:11:39 +01:00
parent 2e8da54512
commit 60de5a0df4

View File

@ -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