main.js
// Ping service by rtoken and return service meta data
Ping service by rtoken and return service meta data
Ping service by rtoken and return service meta data
function ping(req, res, next) {
    if (auth_tokens.validate_rtoken(req.params.rtoken, 'any') != -1) {
        console.log('[ping] ' + uid);
        res.send(metadata);
    }
    else {
        console.log('Unauthorized request: ' + req.params.rtoken);
        res.send(401);
    }
    return next();
}
function ping ( req , res , next ) { if ( auth_tokens . validate_rtoken ( req . params . rtoken , 'any' ) != - 1 ) { console . log ( '[ping] ' + uid ) ; res . send ( metadata ) ; } else { console . log ( 'Unauthorized request: ' + req . params . rtoken ) ; res . send ( 401 ) ; } return next ( ) ; }
Ping service by rtoken and return service meta data
Ping service by rtoken and return service meta data