diff --git a/CHANGELOG.md b/CHANGELOG.md index 047c569051..86132e290a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ ### Fixes - [#2996](https://github.com/poanetwork/blockscout/pull/2996) - Fix awesomplete lib loading in Firefox -- [#2993](https://github.com/poanetwork/blockscout/pull/2993) - Fix path definition for contract verification endpoint +- [#2993](https://github.com/poanetwork/blockscout/pull/2993), [#2999](https://github.com/poanetwork/blockscout/pull/2999) - Fix path definition for contract verification endpoint - [#2990](https://github.com/poanetwork/blockscout/pull/2990) - Fix import of Parity spec file - [#2989](https://github.com/poanetwork/blockscout/pull/2989) - Introduce API_PATH env var - [#2988](https://github.com/poanetwork/blockscout/pull/2988) - Fix web manifest accessibility 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 c8eb33f4ea..e6350113ca 100644 --- a/apps/block_scout_web/lib/block_scout_web/router.ex +++ b/apps/block_scout_web/lib/block_scout_web/router.ex @@ -64,12 +64,12 @@ defmodule BlockScoutWeb.Router do post("/contract_verifications", BlockScoutWeb.AddressContractVerificationController, :create) end - else - scope "/verify_smart_contract" do - pipe_through(:api) + end - post("/contract_verifications", BlockScoutWeb.AddressContractVerificationController, :create) - end + scope "/verify_smart_contract" do + pipe_through(:api) + + post("/contract_verifications", BlockScoutWeb.AddressContractVerificationController, :create) end if Application.get_env(:block_scout_web, WebRouter)[:enabled] do