atriusmaps-node-sdk
Version:
This project provides an API to Atrius Personal Wayfinder maps within a Node environment. See the README.md for more information
17 lines (12 loc) • 514 B
JavaScript
;
var index = require('../../../src/extModules/flexapi/src/index.js');
function create (app, config) {
const api = index();
app.bus.on('clientAPI/registerCommand', ob => api.registerCommand(ob, cob => app.bus.get(`clientAPI/${cob.command}`, cob)));
app.bus.on('clientAPI/registerCustomType', ({ name, spec }) => api.registerCustomType(name, spec));
app.bus.on('clientAPI/execute', cob => api.execute(cob));
return {
init: () => {} // nothing more to do
}
}
exports.create = create;