Update src/node/db/API.js

Added a checkToken method for checking if the API token is valid.
This commit is contained in:
Stephan Jauernick 2012-12-06 21:03:15 +01:00 committed by Stephan Jauernick
parent 7427f9ba15
commit 8686da87e8
1 changed files with 12 additions and 0 deletions

View File

@ -548,6 +548,18 @@ exports.sendClientsMessage = function (padID, msg, callback) {
} );
}
/**
checkToken() returns ok when api token is valid
Example returns:
{code: 0, message:"ok"}
*/
exports.checkToken = function(padID, callback)
{
callback()
}
/******************************/
/** INTERNAL HELPER FUNCTIONS */