|
|
|
@ -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) { |
|
|
|
|