Files: f81bab2f5e5f60995b99ed6d9b588e91f0c47d1f / index.js
491 bytesRaw
1 | const verboseMethods = { |
2 | poll: { |
3 | async: { |
4 | // publishPoll: require('./async/publishPoll') |
5 | }, |
6 | sync: { |
7 | isPoll: require('./sync/isPoll') |
8 | // Poll: // this is not exported - doesn't follow the inject pattern atm |
9 | } |
10 | }, |
11 | position: { |
12 | |
13 | } |
14 | } |
15 | |
16 | const easyMethods = { |
17 | isPoll: require('./sync/isPoll') |
18 | } |
19 | |
20 | module.exports = function (server, opts) { |
21 | const methods = Object.assign({}, verboseMethods, easyMethods) |
22 | return require('./lib/inject')(server, methods) |
23 | } |
24 |
Built with git-ssb-web