From 4a435a4be53ae77c094f992b0c755fcfcc258148 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Fri, 18 Nov 2011 17:14:44 -0500 Subject: [PATCH] Cleanup todo --- lib/static_handler.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/static_handler.js b/lib/static_handler.js index 6a90dfb..15e5560 100644 --- a/lib/static_handler.js +++ b/lib/static_handler.js @@ -42,10 +42,7 @@ StaticHandler.prototype.handle = function(incPath, response) { }); } else { - // TODO 404 if not match regex - //winston.warn('file not found', { path: filePath }); - //response.writeHead(404, { 'content-type': 'application/json' }); - //response.end(JSON.stringify({ message: 'file not found' })); + // serve the default route so that pushstate can work if not found _this.handle('/', response); } });