mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
added listAllPads API command, renamed listPads(GroupID) for Group Pads to listGroupPads(GroupID)
This commit is contained in:
parent
ecd486e440
commit
8fbc96dd7a
4 changed files with 54 additions and 3 deletions
|
@ -113,3 +113,18 @@ exports.unloadPad = function(padId)
|
|||
if(globalPads[padId])
|
||||
delete globalPads[padId];
|
||||
}
|
||||
|
||||
exports.listAllPads = function(callback)
|
||||
{
|
||||
db.get("allpads",function(err,data)
|
||||
{
|
||||
if(err) callback(err);
|
||||
if(data){
|
||||
callback(err,data);
|
||||
}
|
||||
else callback(err,[]);
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue