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

Commit

Permalink
Fix 404 links to API docs (#1051)
Browse files Browse the repository at this point in the history
Please check for other occurrences around the repo, might not be the only one.
  • Loading branch information
dasilvacontin authored and daviddias committed Oct 30, 2017
1 parent 319c1c9 commit 844bf18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ipfs-101/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Running the code above gets you:
IPFS Version: 0.25.0
```

Now lets make it more interesting and add a file to IPFS. We can do it by adding another async call to the series that uses the `node.files.add` call. You can learn about IPFS API for files at [interface-ipfs-core](https://github.com/ipfs/interface-ipfs-core/tree/master/API/files).
Now lets make it more interesting and add a file to IPFS. We can do it by adding another async call to the series that uses the `node.files.add` call. You can learn about IPFS API for files at [interface-ipfs-core](https://github.com/ipfs/interface-ipfs-core/blob/master/SPEC/FILES.md).

```JavaScript
// Create the File to add, a file consists of a path + content. More details on
// https://github.com/ipfs/interface-ipfs-core/tree/master/API/files
// https://github.com/ipfs/interface-ipfs-core/blob/master/SPEC/FILES.md
(cb) => node.files.add({
path: 'hello.txt',
content: Buffer.from('Hello World')
Expand Down

0 comments on commit 844bf18

Please sign in to comment.