UNPKG

scuttle-poll

Version:

Create and vote on polls on ssb

15 lines (11 loc) 389 B
const inject = require('scuttle-inject') const raw = require('./methods') const PLUGIN_DEPS = ['backlinks'] const niceMappings = { pubishChooseOne: raw.poll.async.publishChooseOne } // by following this pattern you can write your own API module.exports = function (server, opts) { const methods = Object.assign({}, raw, niceMappings) return inject(server, methods, PLUGIN_DEPS) }