git ssb

0+

Piet / ssb-loomio



Tree: 3ab10d83371e7fb6a97e4b0a23ded460ab8e01de

Files: 3ab10d83371e7fb6a97e4b0a23ded460ab8e01de / index.js

365 bytesRaw
1const raw = require('./methods')
2const PLUGIN_DEPS = ['backlinks']
3
4const niceMappings = {
5 pubishChooseOne: raw.poll.async.publishChooseOne
6}
7// by following this pattern you can write your own API
8
9module.exports = function (server, opts) {
10 const methods = Object.assign({}, raw, niceMappings)
11
12 return require('./lib/inject')(server, methods, PLUGIN_DEPS)
13}
14

Built with git-ssb-web