Files: 9c5fb9afa9248c901294db9eac5e350da9bc055d / app / sync / initialise / dat.js
355 bytesRaw
1 | const nest = require('depnest') |
2 | const datSharedFiles = require('dat-shared-files/lib') |
3 | |
4 | exports.gives = nest('app.sync.initialise') |
5 | |
6 | exports.create = function (api) { |
7 | return nest('app.sync.initialise', datShare) |
8 | |
9 | function datShare () { |
10 | datSharedFiles.shareFiles(links => { |
11 | links.forEach(link => console.log('Sharing: ' + link)) |
12 | }) |
13 | } |
14 | } |
15 |
Built with git-ssb-web