lib/routing.js
function parseRoute(route, target) {
		var verbs, routePath, routeParts;

		routeParts = route.split(' ');
		if (routeParts.length === 1) {
			verbs = ['all'];
			routePath = routeParts[0];
		} else {
			verbs = routeParts[0].split(',');
			verbs.map(function (verb) {
				return verb.trim().toLowerCase();
			});
			routePath = routeParts[1];
		}
		return {verbs: verbs, path: routePath, target: target};
	}
function parseRoute(route, target) {
		var verbs, routePath, routeParts;

		routeParts = route.split(' ');
		if (routeParts.length === 1) {
			verbs = ['all'];
			routePath = routeParts[0];
		} else {
			verbs = routeParts[0].split(',');
			verbs.map(function (verb) {
				return verb.trim().toLowerCase();
			});
			routePath = routeParts[1];
		}
		return {verbs: verbs, path: routePath, target: target};
	}
function parseRoute ( route , target ) { var verbs , routePath , routeParts ; routeParts = route . split ( ' ' ) ; if ( routeParts . length === 1 ) { verbs = [ 'all' ] ; routePath = routeParts [ 0 ] ; } else { verbs = routeParts [ 0 ] . split ( ',' ) ; verbs . map ( function ( verb ) { return verb . trim ( ) . toLowerCase ( ) ; } ) ; routePath = routeParts [ 1 ] ; } return { verbs : verbs , path : routePath , target : target } ; }
parse a route
@param  {String} route  a route definition
@param  {Object} target target definition
@return {Object}        route parsed into verbs, path and target
parse a route