diff --git a/lib/wsapi/interaction_data.js b/lib/wsapi/interaction_data.js new file mode 100644 index 0000000000000000000000000000000000000000..84581c7a98880c6bb47befc65cb5dfacfe965781 --- /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(); +};