From 9501c75d6c0359d2e454e3ccd431d15631bb5e56 Mon Sep 17 00:00:00 2001
From: Austin King <shout@ozten.com>
Date: Tue, 1 May 2012 16:56:05 -0700
Subject: [PATCH] Adding empty wsapi

---
 lib/wsapi/interaction_data.js | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 lib/wsapi/interaction_data.js

diff --git a/lib/wsapi/interaction_data.js b/lib/wsapi/interaction_data.js
new file mode 100644
index 000000000..84581c7a9
--- /dev/null
+++ b/lib/wsapi/interaction_data.js
@@ -0,0 +1,27 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+const
+logger = require('../logging.js').logger,
+wsapi = require('../wsapi.js');
+
+// Accept JSON formatted interaction data and send it to the KPI Backend
+
+exports.method = 'post';
+exports.writes_db = false;
+exports.authed = false;
+exports.i18n = false;
+
+logger.debug("interaction_data wsapi init");
+
+exports.process = function(req, res) {
+  logger.debug("interaction_data processing request");
+  function sendResponse() {
+    var respObj = {
+      success: true // TODO is there a stanard for this property in our code?
+    };
+    res.json(respObj);
+  };
+  sendResponse();
+};
-- 
GitLab