Files: 0efdedad16bbde469d3c0727c61c1e5e5e908f6b / index.js
365 bytesRaw
1 | const raw = require('./methods') |
2 | const PLUGIN_DEPS = ['backlinks'] |
3 | |
4 | const niceMappings = { |
5 | pubishChooseOne: raw.poll.async.publishChooseOne |
6 | } |
7 | // by following this pattern you can write your own API |
8 | |
9 | module.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