diff --git a/map.html b/static/map.html
similarity index 100%
rename from map.html
rename to static/map.html
diff --git a/traque.js b/traque.js
index a09b941..4e49b14 100644
--- a/traque.js
+++ b/traque.js
@@ -39,10 +39,11 @@ var server = http.createServer(option, function(req, res){
if(q.pathname.includes(".."))
filename = "static/dotdot.html";
if(q.pathname == "/")
- filename = "map.html";
+ filename = "static/map.html";
fs.readFile(filename, function(err, data) {
if (err) {
- res.writeHead(404, {'Content-Type': 'text/html'});
+ console.log("404: ", q.pathname, filename);
+ res.writeHead(404, {'Content-Type': 'text/html'});
return res.end("404 Not Found");
}
res.writeHead(200, {'Content-Type': 'text/html'});