Skip to content

Commit

Permalink
feat: build a custom route for Rotki
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Oct 25, 2024
1 parent 9e59d1f commit bd3e04a
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 55 deletions.
3 changes: 2 additions & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ func NewRouter() *gin.Engine {
/******************************************************************************************
** Vaults for a custom integration
******************************************************************************************/
router.GET(`rotki/vaults`, CacheCustomVaults(cachingStore, 10*time.Minute, c.GetVaultsForRotki))
router.GET(`rotki/list/vaults`, CacheCustomVaults(cachingStore, 10*time.Minute, c.GetVaultsForRotki))
router.GET(`rotki/count/vaults`, c.CountVaultsForRotki)

/******************************************************************************************
** Retrieve a specific vault based on the address. This is chain specific and will return
Expand Down
4 changes: 2 additions & 2 deletions data/meta/strategies/1.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"lastUpdate": "2024-10-25T17:15:17.456398+02:00",
"lastUpdate": "2024-10-25T17:24:59.491112+02:00",
"version": {
"major": 0,
"minor": 1,
"patch": 21
"patch": 47
},
"shouldRefresh": false,
"strategies": {
Expand Down
2 changes: 1 addition & 1 deletion data/meta/tokens/1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdate": "2024-10-25T17:12:54.996823+02:00",
"lastUpdate": "2024-10-25T17:24:11.558127+02:00",
"version": {
"major": 0,
"minor": 70,
Expand Down
Loading

0 comments on commit bd3e04a

Please sign in to comment.