diff options
author | John McLear <john@mclear.co.uk> | 2012-06-27 11:31:25 -0700 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-06-27 11:31:25 -0700 |
commit | a717c11ab363e2e37778a0b13ad4f70b83aef8d6 (patch) | |
tree | f679f45f6d53b61448d617b2b404ba3cf0639a7c /src/node/handler/APIHandler.js | |
parent | b466e37917aa710aba0f6bbb244355cd6d930b46 (diff) | |
parent | 6f9d7a5db79076747584ebd289bf380b2bb95038 (diff) | |
download | etherpad-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.js | 6 |
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"] }; /** |