code: function (req, res) {
      var options = {
        operation: 'PAGINATE',
        res: res,
      };
      exports.paginate.before(req, res, options);
      vulpejs.models.paginate({
        model: req.params.model,
        query: req.params.query || {},
        populate: req.params.populate || '',
        sort: req.params.sort || {},
        page: req.params.page || 1,
        userId: req.session['user-id'],
        callback: {
          success: function (data) {
            exports.paginate.after(req, res, data);
            res.json({
              items: data.items,
              pageCount: data.pageCount,
              itemCount: data.itemCount,
            });
          },
          error: function (error) {
            exports.response.error(options, error);
          },
        },
      });
    }
docs: Paginate list from database.
  @param {Object} req Request
  @param {Object} res Response