diff --git a/static/conscrit.html b/static/tracking/conscrit.html similarity index 100% rename from static/conscrit.html rename to static/tracking/conscrit.html diff --git a/traque.js b/traque.js index 43a10f7..9e633df 100644 --- a/traque.js +++ b/traque.js @@ -54,9 +54,9 @@ var server = http.createServer(option, function(req, res){ if(q.pathname.includes("..")) filename = "static/dotdot.html"; - if(q.pathname.startsWith("/conscrit/")){ - id = q.pathname.substring("/conscrit/".length); - return fs.readFile("static/conscrit.html", 'utf8', function(err, data){ + if(q.pathname.startsWith("/tracking/")){ + id = q.pathname.substring("/tracking/".length); + return fs.readFile("static/tracking/conscrit.html", 'utf8', function(err, data){ if(err) throw new Error("where conscrit.html is !?");