lib/index.js
function koifyRoute(Route) {
	let routePrototype = Route.prototype;
	let routePrototype_ = {};

	for (let method of [...methods, 'all']) {
		routePrototype_[method] = routePrototype[method];
		routePrototype[method] = function () {
			let args = slice.call(arguments);

			for (let i = 0; i < args.length; i++) {
				let handler = args[i];

				if (isFunction(handler)) {
					args[i] = ko.ko(handler);
				}
			}

			return routePrototype_[method].apply(this, args);
		};
	}

	return Route;
}
function koifyRoute(Route) {
	let routePrototype = Route.prototype;
	let routePrototype_ = {};

	for (let method of [...methods, 'all']) {
		routePrototype_[method] = routePrototype[method];
		routePrototype[method] = function () {
			let args = slice.call(arguments);

			for (let i = 0; i < args.length; i++) {
				let handler = args[i];

				if (isFunction(handler)) {
					args[i] = ko.ko(handler);
				}
			}

			return routePrototype_[method].apply(this, args);
		};
	}

	return Route;
}
function koifyRoute ( Route ) { let routePrototype = Route . prototype ; let routePrototype_ = { } ; for ( let method of [ ... methods , 'all' ] ) { routePrototype_ [ method ] = routePrototype [ method ] ; routePrototype [ method ] = function ( ) { let args = slice . call ( arguments ) ; for ( let i = 0 ; i < args . length ; i ++ ) { let handler = args [ i ] ; if ( isFunction ( handler ) ) { args [ i ] = ko . ko ( handler ) ; } } return routePrototype_ [ method ] . apply ( this , args ) ; } ; } return Route ; }
Patches route HTTP methods
Patches route HTTP methods