diff --git a/local-interchain/interchain/router/router.go b/local-interchain/interchain/router/router.go index ff51b01dc..c93bc3b87 100644 --- a/local-interchain/interchain/router/router.go +++ b/local-interchain/interchain/router/router.go @@ -52,6 +52,14 @@ func NewRouter( log.Printf("chain_registry.json not found in %s, not exposing endpoint.", wd) } + chainRegistryAssetsFile := filepath.Join(wd, "chain_registry_assets.json") + if _, err := os.Stat(chainRegistryAssetsFile); err == nil { + crH := handlers.NewChainRegistry(chainRegistryAssetsFile) + r.HandleFunc("/chain_registry_assets", crH.GetChainRegistry).Methods(http.MethodGet) + } else { + log.Printf("chain_registry_assets.json not found in %s, not exposing endpoint.", wd) + } + actionsH := handlers.NewActions(ctx, ic, cosmosChains, vals, relayer, eRep, authKey) r.HandleFunc("/", actionsH.PostActions).Methods(http.MethodPost)