Browse Source

doc: update readme with s/feed/writer api change

noffle 3 years ago
parent
commit
0186a7658d
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      README.md
  2. 1
    1
      example.js

+ 1
- 1
README.md View File

@@ -47,7 +47,7 @@ var sumview = {
47 47
 // the api will be mounted at core.api.sum
48 48
 core.use('sum', 1, sumview)  // name the view 'sum' and consider the 'sumview' logic as version 1
49 49
 
50
-core.feed('default', function (err, feed) {
50
+core.writer('default', function (err, feed) {
51 51
   feed.append(1, function (err) {
52 52
     core.api.sum.get(function (err, value) {
53 53
       console.log(value) // 1

+ 1
- 1
example.js View File

@@ -24,7 +24,7 @@ var sumview = {
24 24
 // the api will be mounted at core.api.sum
25 25
 core.use('sum', sumview)
26 26
 
27
-core.feed('default', function (err, feed) {
27
+core.writer('default', function (err, feed) {
28 28
   feed.append(1, function (err) {
29 29
     core.api.sum.get(function (err, value) {
30 30
       console.log(value) // 1