lib/middleware/assets/index.js
function proxy(func){
    'use strict';

    // Returns a middleware
    return function (kontx, next){
        func(kontx.args).then(
            function(payload){
                kontx.payload = payload;
                next();
            },
            function(err){
                next(err);
            }
        );
    };
}
function proxy(func){
    'use strict';

    // Returns a middleware
    return function (kontx, next){
        func(kontx.args).then(
            function(payload){
                kontx.payload = payload;
                next();
            },
            function(err){
                next(err);
            }
        );
    };
}
function proxy ( func ) { 'use strict' ; // Returns a middleware return function ( kontx , next ) { func ( kontx . args ) . then ( function ( payload ) { kontx . payload = payload ; next ( ) ; } , function ( err ) { next ( err ) ; } ) ; } ; }
Proxy function will take a assets function and wrap it with a middleware.
@param func
@returns {Function}
Proxy function will take a assets function and wrap it with a middleware .