Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit a3c590f

Browse files
committed
Change all to GET /db/:dbname/index
1 parent 8b1df7d commit a3c590f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"express": "^4.16.4",
2121
"ipfs": "^0.34.4",
2222
"ipfs-http-client": "^30.0.0",
23-
"orbit-db": "0.20.0-rc.1.1"
23+
"orbit-db": "~0.20.0-rc8"
2424
}
2525
}

src/lib/orbitdb-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ class OrbitdbAPI extends Express {
162162
return res.json(contents)
163163
}));
164164

165-
this.get('/db/:dbname/all', asyncMiddleware( async (req, res, next) => {
165+
this.get('/db/:dbname/index', asyncMiddleware( async (req, res, next) => {
166166
let db
167167
db = await dbm.get(req.params.dbname)
168-
return res.json(db.all())
168+
return res.json(db.index)
169169
}));
170170

171171
this.get('/db/:dbname/value', asyncMiddleware( async (req, res, next) => {

0 commit comments

Comments
 (0)