/*
 * Module dependencies
 */

var app = module.parent.exports,
	Joiner = require('../libs/joiner').Joiner;

/*
 * Middlewares
 */

function isAnotherFile (req, res, next) {
	var folder = req.params.version;
	if (folder === 'assets' || folder === 'vendor' || folder === 'test' || folder === 'libs') {
		next('route');
	} else {
		next();
	}
};

function isView (req, res, next) {
	if (req.params.type === undefined) {
		res.render(req.params.version + '.html');
	} else {
		next();
	}
};

/*
 * Views
 */
app.get('/:version/:type?/:min?', isAnotherFile, isView, function (req, res, next) {
	var name = req.params.version + req.params.type.toUpperCase(),
		min = ((req.params.min) ? true : false),
		joiner = new Joiner();

	joiner.on('joined', function (data) {
		res.set('Content-Type', 'text/' + (req.params.type === 'js' ? 'javascript' : 'css'));
		res.send(data.raw);
	});

	joiner.run(name, min);
});

/*
 * Index
 */
app.get('/', function (req, res, next) {
	res.redirect('/ui')
});
@@ -527,14 +527,8 @@
 ype?
-/:min?
 ', i
@@ -659,22 +659,21 @@
 req.
-params
+query
 .min) ? 
 true
@@ -672,12 +672,21 @@
 ) ? 
-true
+req.query.min
  : f

Change the min feature to a parameter as ?min=true to get data form joiner.