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] :<|> "prices" :> Get '[JSON] [MarketPrice]
:<|> "commodities" :> Get '[JSON] [Commodity] :<|> "commodities" :> Get '[JSON] [Commodity]
:<|> "accounts" :> Get '[JSON] [Account] :<|> "accounts" :> Get '[JSON] [Account]
:<|> "reports" :> :<|> "accounts" :> Capture "acct" AccountName :> Get '[JSON] AccountTransactionsReport
"accounttransactions" :> Capture "acct" AccountName :> Get '[JSON] AccountTransactionsReport
:<|> Raw
hledgerApiApp :: Journal -> Wai.Application hledgerApiApp :: Journal -> Wai.Application
hledgerApiApp j = Servant.serve api server hledgerApiApp j = Servant.serve api server