Prima del salvataggio USER

This commit is contained in:
paolo
2018-10-14 22:10:00 +02:00
parent 43f2484e54
commit 01d5f3cec1
9 changed files with 217 additions and 55 deletions

13
tools/tools.js Normal file
View File

@@ -0,0 +1,13 @@
var sendRequest = function (url, method, body)
{
const options = {
method: method,
mode: 'no-cors',
headers: new Headers({'content-type': 'application/json'}),
mode: 'no-cors'
};
options.body = JSON.stringify(body);
return fetch(url, options);
}();