Move api's url to the end of example

pull/2591/head
saneery 5 years ago
parent d40aaef0c6
commit 37da2eaa6e
  1. 2
      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) {

Loading…
Cancel
Save