summaryrefslogtreecommitdiff
path: root/src/node/handler
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-06-27 18:23:17 +0200
committerMarcel Klehr <mklehr@gmx.net>2012-06-27 18:23:17 +0200
commit6f9d7a5db79076747584ebd289bf380b2bb95038 (patch)
treec0703fee5c77bcc445e14a060bd5b48cd68e13ea /src/node/handler
parent0bc01feb72f116c95faafd78df2eb87b6fae3143 (diff)
downloadetherpad-lite-6f9d7a5db79076747584ebd289bf380b2bb95038.zip
Add 2 new APIs: listPadsOfAuthor and listAuthorsOfPad
Return all pads that a given author has contributed to (not just created) and return all authors who has contributed to a given pad.
Diffstat (limited to 'src/node/handler')
-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 98b1ed16..b6bb93bd 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"],
@@ -62,7 +63,8 @@ var functions = {
"setPublicStatus" : ["padID", "publicStatus"],
"getPublicStatus" : ["padID"],
"setPassword" : ["padID", "password"],
- "isPasswordProtected" : ["padID"]
+ "isPasswordProtected" : ["padID"],
+ "listAuthorsOfPad" : ["padID"]
};
/**