function serveAudioInformation(req, res){
    cloudant.use(req.params.dronename + '_audio').list({}, function(err, response){
        if(err){
            logger.error(err);
            res.status(500).send("Internal error.");
        } else {
            response.rows.forEach(function(row){
                delete row.value;
                delete row.key;
            });
            res.status(200).send(response.rows);
        }
    });
}
/**
 * Serve audio information from Cloudant database
 * @param req {Object} The request from the client
 * @param res {Object} The response for the client
 */
Serve audio information from Cloudant database
@param req {Object} The request from the client
@param res {Object} The response for the client
Serve audio information from Cloudant database @param req { Object } The request from the client @param res { Object } The response for the client
function serveAudioInformation(req, res){
    cloudant.use(req.params.dronename + '_audio').list({}, function(err, response){
        if(err){
            logger.error(err);
            res.status(500).send("Internal error.");
        } else {
            response.rows.forEach(function(row){
                delete row.value;
                delete row.key;
            });
            res.status(200).send(response.rows);
        }
    });
}
function serveAudioInformation ( req , res ) { cloudant . use ( req . params . dronename + '_audio' ) . list ( { } , function ( err , response ) { if ( err ) { logger . error ( err ) ; res . status ( 500 ) . send ( "Internal error." ) ; } else { response . rows . forEach ( function ( row ) { delete row . value ; delete row . key ; } ) ; res . status ( 200 ) . send ( response . rows ) ; } } ) ; }
Serve audio information from Cloudant database
 @param req {Object} The request from the client
 @param res {Object} The response for the client
Serve audio information from Cloudant database @param req { Object } The request from the client @param res { Object } The response for the client