From f7fabb4b3f6f5d6494adc257f359f361a1490938 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Mon, 8 Jul 2019 13:42:13 +0300 Subject: [PATCH] use api pipe --- apps/block_scout_web/lib/block_scout_web/router.ex | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 4b5471cb52..4f5a8e1bed 100644 --- a/apps/block_scout_web/lib/block_scout_web/router.ex +++ b/apps/block_scout_web/lib/block_scout_web/router.ex @@ -18,13 +18,6 @@ defmodule BlockScoutWeb.Router do plug(:accepts, ["json"]) end - pipeline :contract_verification do - plug(:accepts, ["html"]) - plug(:fetch_session) - plug(:fetch_flash) - plug(BlockScoutWeb.CSPHeader) - end - scope "/api/v1", BlockScoutWeb.API.V1, as: :api_v1 do pipe_through(:api) @@ -37,7 +30,7 @@ defmodule BlockScoutWeb.Router do end scope "/verify_smart_contract" do - pipe_through(:contract_verification) + pipe_through(:api) post("/contract_verifications", BlockScoutWeb.AddressContractVerificationController, :create) end