'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
    _ = require('lodash');

/**
 * Create a Category
 */
exports.create = function(req, res) {

};

/**
 * Show the current Category
 */
exports.read = function(req, res) {

};

/**
 * Update a Category
 */
exports.update = function(req, res) {

};

/**
 * Delete an Category
 */
exports.delete = function(req, res) {

};

/**
 * List of Categories
 */
exports.list = function(req, res) {

};
@@ -77,16 +77,112 @@
 ose'),%0A 
+ errorHandler = require('./errors.server.controller'),%0A  Category = mongoose.model('Category'),%0A
    _ = r
@@ -541,31 +541,251 @@
 list = function(req, res) %7B%0A
+  Category.find().exec(function (err, categories) %7B%0A    if (err)%7B%0A      return res.status(400).send(%7B%0A          message: errorHandler.getErrorMessage(err)%0A        %7D);%0A    %7D else %7B%0A      res.json(categories);%0A    %7D%0A  %7D);
 %0A%7D;
+%0A

Modify Categories controller for listing elements.