From a0e801ac413bfc1f103ad6bc74c5eb5e5f2e69b5 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Wed, 21 Feb 2024 12:23:16 +0300 Subject: [PATCH] Rename some Noves.fi proxy endpoints --- apps/block_scout_web/lib/block_scout_web/api_router.ex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/lib/block_scout_web/api_router.ex b/apps/block_scout_web/lib/block_scout_web/api_router.ex index 467793c43c..6040554436 100644 --- a/apps/block_scout_web/lib/block_scout_web/api_router.ex +++ b/apps/block_scout_web/lib/block_scout_web/api_router.ex @@ -326,8 +326,16 @@ defmodule BlockScoutWeb.ApiRouter do scope "/proxy" do scope "/noves-fi" do get("/transactions/:transaction_hash_param", V2.Proxy.NovesFiController, :transaction) + # todo: remove in the future get("/transactions/:transaction_hash_param/describe", V2.Proxy.NovesFiController, :describe_transaction) - get("/addresses/:address_hash_param/transactions", V2.Proxy.NovesFiController, :address_transactions) + get("/transactions/:transaction_hash_param/description", V2.Proxy.NovesFiController, :describe_transaction) + + get( + "/addresses/:address_hash_param/transaction-descriptions", + V2.Proxy.NovesFiController, + :address_transactions + ) + get("/transactions", V2.Proxy.NovesFiController, :describe_transactions) end