From 37da2eaa6e5500b493e892e2c4da8358ba52d6a6 Mon Sep 17 00:00:00 2001 From: saneery Date: Thu, 29 Aug 2019 10:30:05 +0300 Subject: [PATCH] Move api's url to the end of example --- apps/block_scout_web/assets/js/lib/try_eth_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/block_scout_web/assets/js/lib/try_eth_api.js b/apps/block_scout_web/assets/js/lib/try_eth_api.js index 8f81f852ec..c59d71dbcc 100644 --- a/apps/block_scout_web/assets/js/lib/try_eth_api.js +++ b/apps/block_scout_web/assets/js/lib/try_eth_api.js @@ -2,7 +2,7 @@ import $ from 'jquery' function composeCurlCommand (data) { const url = $('[data-endpoint-url]').attr('data-endpoint-url') - return `curl ${url} -H "content-type: application/json" -X POST --data '${JSON.stringify(data)}'` + return `curl -H "content-type: application/json" -X POST --data '${JSON.stringify(data)}' ${url}` } function handleResponse (data, xhr, clickedButton) {