function route(n,t,i,r){var e=url.parse(t.url,!0),o=e.pathname,s=e.query,u=!1,f;console.log("Processing request:  "+decodeURI(t.url));for(f in s)typeof n[f]=="object"?(n[f].exec(t,i,r),u=!0):typeof n[o]=="function"&&(n[o](t,i,r),u=!0);u||(console.log("No request handler was found for "+t.url),i.writeHead(404,{"Content-Type":"text/html"}),i.write("404 - Not Found"),i.end())}var url=require("url");exports.route=route