'use strict';

module.exports = function(app) {
app.route('/categories')
  .get(function (request, response) {
    response.json([
      { name: 'Beverages' },
      { name: 'Condiments' }
    ]);
  });
};

'use strict';

module.exports = function(app) {

  var categories = require('../../app/controllers/categories.server.controller');

  // route for GET categories
  app.route('/categories')
    .get(categories.list);
};

Modify route for Categories GET command.
Modify route for Categories GET command.
