ARRAY(Object.keys(spec.routes)).forEach(function(key) { if(is.func(modules[key])) { tmp[key] = modules[key](opts); } else if(is.obj(modules[key])) { tmp[key] = modules[key]; } });
debug.setPrefix = function(value) { if(!is.func(value)) { debug.assert(value).is('string'); } debug.defaults.prefix = value; return debug.defaults.prefix; };
"$use": ARRAY(funcs).map(function get_routes_map_use_funcs(func) { if(is.func(func)) { return; } if(is.obj(func) && func.hasOwnProperty('$use')) { return func.$use; } }).filter(function get_routes_filter_use_funcs(func) {
"$del": ARRAY(funcs).map(function get_routes_map_del_funcs(func) { if(is.func(func)) { return; } if(is.obj(func) && func.hasOwnProperty('$del')) { return func.$del; } }).filter(function get_routes_filter_del_funcs(func) {
"$post": ARRAY(funcs).map(function get_routes_map_post_funcs(func) { if(is.func(func)) { return; } if(is.obj(func) && func.hasOwnProperty('$post')) { return func.$post; } }).filter(function get_routes_filter_post_funcs(func) {
"$get": ARRAY(funcs).map(function get_routes_map_get_funcs(func) { if(is.func(func)) { return func; } if(is.obj(func) && func.hasOwnProperty('$get')) { return func.$get; } }).filter(function get_routes_filter_get(func) {
/** Get prefix */ function get_prefix(value) { var has_prefix = debug.defaults.hasOwnProperty('prefix'); if(!has_prefix) { return value; } var prefix = has_prefix ? debug.defaults.prefix : ''; if(is.func(prefix)) { return prefix(value); } return ''+ value + ' ' + prefix; }
str = str.replace(/(\/[^/:\)\(]+)+/gi, function(path) { if(FS && is.func(FS.existsSync) && FS.existsSync(path)) { return print_path(path); } return path; });
}).filter(function get_routes_filter_use_funcs(func) { return is.func(func); }).valueOf()