-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension of already existing plugins #178
Comments
You just need to add a new route to https://github.com/itering/subscan-essentials/blob/65a62200b6277ff02d38d50bc0658cc2df3aa16c/plugins/balance/http/http.go#L20 and write the query in this handle logic |
Yeah i tried that and wrote a query similar to this |
[Update] Both routes work separately when the other is commented out but when both are present data is not returned properly.
The accounts route returns multiple db table rows while findac return only one. |
you can achieve this by using query parameters |
The balance plugin already creates a db table but the api just takes row and page parameter in request body. Now if I need to extend this plugins' already existing feature by adding account search how do I go about it. I tried adding a new route within the balance plugin
https://github.com/itering/subscan-essentials/blob/master/plugins/balance/http/http.go#L18
but data is not being queried through and modification in one route's function affected the other.The text was updated successfully, but these errors were encountered: