From: chapel Date: Sun, 13 Nov 2011 21:01:30 +0000 (-0800) Subject: Send index.html on all ajax views, fix public file includes X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c0292c051b8fa1b1021096df8c511f5908d3f2b;p=oweals%2Ffinalsclub.git Send index.html on all ajax views, fix public file includes --- diff --git a/app.js b/app.js index 212b30d..7c98b19 100644 --- a/app.js +++ b/app.js @@ -433,7 +433,7 @@ function checkAjax( req, res, next ) { if ( req.xhr ) { next(); } else { - res.redirect( '/' ); + res.sendfile( 'public/index.html' ); } } diff --git a/public/index.html b/public/index.html index b2dde81..38c6c42 100644 --- a/public/index.html +++ b/public/index.html @@ -6,13 +6,13 @@ - + - - - - - + + + + +