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
|
@ -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 */
|
/** INTERNAL HELPER FUNCTIONS */
|
||||||
|
|
Loading…
Reference in New Issue