summaryrefslogtreecommitdiff
path: root/src/node/handler/APIHandler.js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2012-06-27 11:31:25 -0700
committerJohn McLear <john@mclear.co.uk>2012-06-27 11:31:25 -0700
commita717c11ab363e2e37778a0b13ad4f70b83aef8d6 (patch)
treef679f45f6d53b61448d617b2b404ba3cf0639a7c /src/node/handler/APIHandler.js
parentb466e37917aa710aba0f6bbb244355cd6d930b46 (diff)
parent6f9d7a5db79076747584ebd289bf380b2bb95038 (diff)
downloadetherpad-lite-a717c11ab363e2e37778a0b13ad4f70b83aef8d6.zip
Merge pull request #819 from marcelklehr/contributor-api-methods
Contributor api methods (listPadsOfAuthor & listAuthorsOfPad )
Diffstat (limited to 'src/node/handler/APIHandler.js')
-rw-r--r--src/node/handler/APIHandler.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node/handler/APIHandler.js b/src/node/handler/APIHandler.js
index a7b1a8ab..567a90d2 100644
--- a/src/node/handler/APIHandler.js
+++ b/src/node/handler/APIHandler.js
@@ -40,13 +40,14 @@ catch(e)
//a list of all functions
var functions = {
"createGroup" : [],
- "createGroupIfNotExistsFor" : ["groupMapper"],
+ "createGroupIfNotExistsFor" : ["groupMapper"],
"deleteGroup" : ["groupID"],
"listPads" : ["groupID"],
"createPad" : ["padID", "text"],
"createGroupPad" : ["groupID", "padName", "text"],
"createAuthor" : ["name"],
"createAuthorIfNotExistsFor": ["authorMapper" , "name"],
+ "listPadsOfAuthor" : ["authorID"],
"createSession" : ["groupID", "authorID", "validUntil"],
"deleteSession" : ["sessionID"],
"getSessionInfo" : ["sessionID"],
@@ -63,7 +64,8 @@ var functions = {
"setPublicStatus" : ["padID", "publicStatus"],
"getPublicStatus" : ["padID"],
"setPassword" : ["padID", "password"],
- "isPasswordProtected" : ["padID"]
+ "isPasswordProtected" : ["padID"],
+ "listAuthorsOfPad" : ["padID"]
};
/**