Files: fa119a00e0a13307d66a09f8c482ae107ba31bdb / index.js
451 bytesRaw
1 | const inject = require('scuttle-inject') |
2 | const merge = require('lodash.merge') |
3 | |
4 | const raw = require('./methods') |
5 | const PLUGIN_DEPS = ['backlinks'] |
6 | |
7 | const 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 | |
14 | module.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