Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
move storage under fs api
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyschmidt committed Nov 15, 2022
1 parent 9993e55 commit 31cb8d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = ({ drv, peers, serviceEvents }) => {
content
},
route: {
path: '/'
path: 'fs'
},
path: 'store'
},
Expand All @@ -87,7 +87,8 @@ module.exports = ({ drv, peers, serviceEvents }) => {
}
);

const fileName = file.split('/')[1];
// TODO: Flatten nested `onHttpPost` responses
const fileName = file.data.data.split('/')[1];

// eslint-disable-next-line no-param-reassign
drvValue = `::magnet=?xt=urn:drv/${contentType}:${fileName}&dn=${capitalizeSlug(contentType)}`;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drv200",
"version": "0.0.6",
"version": "0.0.7",
"dependencies": {
"cryptography-utilities": "^0.0.2",
"drv100": "^0.0.1"
Expand Down

0 comments on commit 31cb8d7

Please sign in to comment.