git ssb

0+

Piet / ssb-loomio



Tree: 1fe8a8808eb5537d88dcaf30930d6d57f2986822

Files: 1fe8a8808eb5537d88dcaf30930d6d57f2986822 / index.js

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

Built with git-ssb-web