From bc6b03ab29703dfff857b63727657ca3127eb381 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 11 Feb 2021 13:01:43 +0100 Subject: Refactoring: Reimplement Webroot Deployment --- lib/js/example.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/js/example.js (limited to 'lib/js') diff --git a/lib/js/example.js b/lib/js/example.js new file mode 100644 index 0000000..59cf1ee --- /dev/null +++ b/lib/js/example.js @@ -0,0 +1,14 @@ + +function example_post() { + + var data = { + "key":"value", + } + var json = JSON.stringify(data); + + var xhr = new XMLHttpRequest(); + xhr.open("POST", "api", true); + xhr.send(json); + +} + -- cgit v1.2.3-70-g09d2