src/actions/comments/comments.js
/**
 * List comments function
 * @function listComments
 * @param {string} url Content url
 * @returns {Object} List comment action
 */
List comments function
@function listComments
@param {string} url Content url
@returns {Object} List comment action
List comments function @function listComments @param { string } url Content url @returns { Object } List comment action
function listComments(url) {
  return {
    type: LIST_COMMENTS,
    request: {
      op: 'get',
      path: `${url}/@comments`,
    },
  };
}
function listComments ( url ) { return { type : LIST_COMMENTS , request : { op : 'get' , path : ` ${ url } ` , } , } ; }
List comments function
 @function listComments
 @param {string} url Content url
 @returns {Object} List comment action
List comments function @function listComments @param { string } url Content url @returns { Object } List comment action