fix: pipe through api_v2_no_forgery_protect POST requests in SmartContractsApiV2Router

pull/10249/head
Viktor Baranov 5 months ago
parent 366aaca93f
commit 6a269b1e7f
  1. 9
      apps/block_scout_web/lib/block_scout_web/routers/smart_contracts_api_v2_router.ex

@ -53,14 +53,19 @@ defmodule BlockScoutWeb.Routers.SmartContractsApiV2Router do
get("/:address_hash/methods-write", V2.SmartContractController, :methods_write)
get("/:address_hash/methods-read-proxy", V2.SmartContractController, :methods_read_proxy)
get("/:address_hash/methods-write-proxy", V2.SmartContractController, :methods_write_proxy)
post("/:address_hash/query-read-method", V2.SmartContractController, :query_read_method)
get("/:address_hash/solidityscan-report", V2.SmartContractController, :solidityscan_report)
post("/:address_hash/audit-reports", V2.SmartContractController, :audit_report_submission)
get("/:address_hash/audit-reports", V2.SmartContractController, :audit_reports_list)
get("/verification/config", V2.VerificationController, :config)
end
scope "/", as: :api_v2 do
pipe_through(:api_v2_no_forgery_protect)
post("/:address_hash/query-read-method", V2.SmartContractController, :query_read_method)
post("/:address_hash/audit-reports", V2.SmartContractController, :audit_report_submission)
end
scope "/:address_hash/verification/via", as: :api_v2 do
pipe_through(:api_v2_no_forgery_protect)

Loading…
Cancel
Save