diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/stakes_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/stakes_controller.ex new file mode 100644 index 0000000000..c64d2309e3 --- /dev/null +++ b/apps/block_scout_web/lib/block_scout_web/controllers/stakes_controller.ex @@ -0,0 +1,14 @@ +defmodule BlockScoutWeb.StakesController do + use BlockScoutWeb, :controller + + alias BlockScoutWeb.StakesView + + def index(conn, params) do + [] + |> handle_render(conn, params) + end + + defp handle_render(full_options, conn, _params) do + render(conn, "index.html") + end +end diff --git a/apps/block_scout_web/lib/block_scout_web/router.ex b/apps/block_scout_web/lib/block_scout_web/router.ex index d13ff1a85e..8a8fc39624 100644 --- a/apps/block_scout_web/lib/block_scout_web/router.ex +++ b/apps/block_scout_web/lib/block_scout_web/router.ex @@ -71,7 +71,10 @@ defmodule BlockScoutWeb.Router do resources("/", ChainController, only: [:show], singleton: true, as: :chain) - resources("/market_history_chart", Chain.MarketHistoryChartController, only: [:show], singleton: true) + resources("/market_history_chart", Chain.MarketHistoryChartController, + only: [:show], + singleton: true + ) resources "/blocks", BlockController, only: [:index, :show], param: "hash_or_number" do resources("/transactions", BlockTransactionController, only: [:index], as: :transaction) @@ -81,6 +84,8 @@ defmodule BlockScoutWeb.Router do get("/uncles", BlockController, :uncle, as: :uncle) + resources("/stakes", StakesController, only: [:index]) + resources("/pending_transactions", PendingTransactionController, only: [:index]) resources("/recent_transactions", RecentTransactionsController, only: [:index]) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex index 99924fc67d..d50e46d959 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex @@ -85,15 +85,20 @@