UNPKG

wmg

Version:

A Commandline Foolin around

23 lines (19 loc) 473 B
var Service = require('../infrastructure/ServiceHandler.js'); function whoami (config) { Service.request({ method: 'get', path: '/info/whoami', onSuccess: config.onSuccess, onFail: config.onFail }); } function status (config) { Service.request({ method: 'get', path: '/info/status', onSuccess: config.onSuccess, onFail: config.onFail }); } exports.whoami = whoami; exports.status = status;