var path = require("path");
var fs = require("fs");
var myparse = require("./myparse.js");
-var webmain = require("./purls/main.js");
+var webmain = require("./webmain.js");
var staticExtensions = ["html", "gif", "jpg", "css", "js", "ico"];
}
var thispurl = purl.pathname.split("/")[1];
- fs.stat("./lib/purls/web_"+thispurl+".js", function (err, stats) {
+ fs.stat("./purls/web_"+thispurl+".js", function (err, stats) {
console.log("get purl is "+thispurl+" and err "+err+" and "+stats);
if(err) {
response.writeHead(404, {"Content-Type": "text/plain"});
response.end();
return;
}
- var thiserv = require("./purls/web_"+thispurl+".js");
+ var thiserv = require("../purls/web_"+thispurl+".js");
if(thiserv.requireBody()) {
console.log("yubber is true");
webmain.serveBody(request, response, thiserv.process);