19 lines
499 B
JavaScript
19 lines
499 B
JavaScript
|
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);*/
|
||
|
|
||
|
};
|