middleware/_modelIndex.js
function (cb) {

                // check if we need to render the filters
                if (!Object.keys(req.linz.model.list.filters).length) {
                    return cb(null);
                }

                formtoolsAPI.list.renderFilters(req, req.params.model, function (err, result) {

                    if (err) {
                        return cb(err);
                    }

                    req.linz.model.list.filters = result;

                    return cb(null);
                });

            }
function (cb) {

                // check if we need to render the filters
                if (!Object.keys(req.linz.model.list.filters).length) {
                    return cb(null);
                }

                formtoolsAPI.list.renderFilters(req, req.params.model, function (err, result) {

                    if (err) {
                        return cb(err);
                    }

                    req.linz.model.list.filters = result;

                    return cb(null);
                });

            }
function ( cb ) { // check if we need to render the filters if ( ! Object . keys ( req . linz . model . list . filters ) . length ) { return cb ( null ) ; } formtoolsAPI . list . renderFilters ( req , req . params . model , function ( err , result ) { if ( err ) { return cb ( err ) ; } req . linz . model . list . filters = result ; return cb ( null ) ; } ) ; }
render the filters
render the filters