From cf90fa002afec60e2c057348de24ca1d8bcbaaa4 Mon Sep 17 00:00:00 2001
From: Paul Duncan <pabs@pablotron.org>
Date: Mon, 14 Mar 2016 02:20:50 -0400
Subject: add test/{get_users,set_user}, js/util.js, lots more

---
 data/stuff/js/util.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 data/stuff/js/util.js

(limited to 'data/stuff/js')

diff --git a/data/stuff/js/util.js b/data/stuff/js/util.js
new file mode 100644
index 0000000..a6826db
--- /dev/null
+++ b/data/stuff/js/util.js
@@ -0,0 +1,12 @@
+jQuery(function($) {
+  "use strict";
+
+  window.send = function(fn, args) {
+    return $.ajax({
+      url: "/api/" + fn,
+      method: 'POST',
+      dataType: 'json',
+      data: args,
+    });
+  };
+});
-- 
cgit v1.2.3