git ssb

0+

mixmix / scuttle-gathering



Tree: fa119a00e0a13307d66a09f8c482ae107ba31bdb

Files: fa119a00e0a13307d66a09f8c482ae107ba31bdb / index.js

451 bytesRaw
1const inject = require('scuttle-inject')
2const merge = require('lodash.merge')
3
4const raw = require('./methods')
5const PLUGIN_DEPS = ['backlinks']
6
7const niceMappings = {
8 get: raw.gathering.async.get,
9 post: raw.gathering.async.publish,
10 put: raw.update.async.publish,
11 attending: raw.attendee.async.publish
12}
13
14module.exports = function (server, opts) {
15 const methods = merge(niceMappings, raw)
16
17 return inject(server, methods, PLUGIN_DEPS)
18}
19

Built with git-ssb-web