11 lines
203 B
JavaScript
11 lines
203 B
JavaScript
|
var eiModel = require('../model/ei');
|
||
|
|
||
|
exports.list = function (req, res, next) {
|
||
|
eiModel.fetchAll(req, res, next, function (err, result) {
|
||
|
if (err) {
|
||
|
res.send(err)
|
||
|
}
|
||
|
res.send(result);
|
||
|
});
|
||
|
};
|