controllers/Group.js
function finishRendering(data){
			// If none object found with given id return error
			if(id && !data[0])
				return next();

			// If querying for id, then returns only the object
			if(id)
				data = data[0];

			// Render the json
			res.send(data);
		}
function finishRendering(data){
			// If none object found with given id return error
			if(id && !data[0])
				return next();

			// If querying for id, then returns only the object
			if(id)
				data = data[0];

			// Render the json
			res.send(data);
		}
function finishRendering ( data ) { // If none object found with given id return error if ( id && ! data [ 0 ] ) return next ( ) ; // If querying for id, then returns only the object if ( id ) data = data [ 0 ] ; // Render the json res . send ( data ) ; }
Render JSON content
Render JSON content