mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
Added filtered GET request
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user