api: move endpoint for accounttransaction to /account/:name
This commit is contained in:
parent
2e8da54512
commit
60de5a0df4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user