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]
|
:<|> "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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user