use api pipe

pull/2264/head
Ayrat Badykov 5 years ago
parent 2f91e8c380
commit f7fabb4b3f
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 9
      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

Loading…
Cancel
Save