UNPKG

ipfs

Version:

JavaScript implementation of the IPFS specification

40 lines (37 loc) 803 B
'use strict' const resources = require('../resources') module.exports = [ { method: '*', path: '/api/v0/pin/add', options: { pre: [ { method: resources.pin.add.parseArgs, assign: 'args' } ], validate: resources.pin.add.validate }, handler: resources.pin.add.handler }, { method: '*', path: '/api/v0/pin/rm', options: { pre: [ { method: resources.pin.rm.parseArgs, assign: 'args' } ], validate: resources.pin.rm.validate }, handler: resources.pin.rm.handler }, { method: '*', path: '/api/v0/pin/ls', config: { pre: [ { method: resources.pin.ls.parseArgs, assign: 'args' } ], validate: resources.pin.ls.validate }, handler: resources.pin.ls.handler } ]