Update src/node/db/API.js
Added a checkToken method for checking if the API token is valid.
This commit is contained in:
parent
7427f9ba15
commit
8686da87e8
1 changed files with 12 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue