UNPKG

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

21 lines (17 loc) 532 B
'use strict'; var index = require('../../../src/extModules/flexapi/src/index.js'); function create(app) { 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;