Skip to content

Commit 90ae8c0

Browse files
Rename LdpApi to LdpHttpHandler
1 parent 8997b2f commit 90ae8c0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/api/ldp/api.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
const LdpOperation = require('./ldp-operation')
44

5-
class LdpApi {
5+
class LdpHttpHandler {
66
/**
77
* Usage:
88
* ```
99
* const store = new LdpFileStore({host, fetch, ...})
1010
* const acl = new AclChecker({host, fetch, store, ...})
1111
*
12-
* const ldp = new LdpApi({store, acl})
12+
* const ldp = new LdpHttpHandler({store, acl})
1313
* ```
1414
*
1515
* @param options.store {LdpFileStore|LdpMemoryStore|LdpQuadStore} storage backend
@@ -53,7 +53,7 @@ class LdpApi {
5353
*/
5454
async middleware (req, res, next) {
5555
try {
56-
// parse target, operation, (optionally) body, preferences, store authn
56+
// parse operation
5757
const operation = LdpOperation.from(req)
5858

5959
// check that operation is permitted (throws error if not)
@@ -67,4 +67,4 @@ class LdpApi {
6767
}
6868
}
6969

70-
module.exports = LdpApi
70+
module.exports = LdpHttpHandler

0 commit comments

Comments
 (0)