Added filtered GET request

This commit is contained in:
Fran Jurmanović
2021-05-22 16:51:18 +02:00
parent f9ea943ed9
commit 8d4dc3ff57
6 changed files with 83 additions and 8 deletions

View File

@@ -34,10 +34,10 @@ func (wc *TransactionController) New(c *gin.Context) {
}
func (wc *TransactionController) GetAll(c *gin.Context) {
embed, _ := c.GetQuery("embed")
fr := FilteredResponse(c)
wallet, _ := c.GetQuery("walletId")
wm := wc.TransactionService.GetAll(wallet, embed)
wc.TransactionService.GetAll(wallet, fr)
c.JSON(200, wm)
c.JSON(200, fr)
}