salix/services/client/server/boot/header.js

19 lines
499 B
JavaScript
Raw Normal View History

2017-05-18 09:54:39 +00:00
module.exports = function(app) {
/*function modifyResponse(ctx, model, next) {
var result = ctx.result;
var status = ctx.res.statusCode;
if(Array.isArray(result)){
/*app.models.Client.count(null, function (err, count) {
if(!err) {
ctx.res.set('Count-elements', count);
}
})
ctx.res.set('Count-elements', 3);
ctx.res.status(status).next();
}
}
app.models.Client.afterRemote('**', modifyResponse);*/
};