/**
  * EXPRESS APP.JS
  */

/**
 * Module dependencies
 */

var express = require('express'),
  bodyParser = require('body-parser'),
  methodOverride = require('method-override'),
  errorHandler = require('errorhandler'),
  morgan = require('morgan'),
  http = require('http'),
  path = require('path');

var app = module.exports = express();

/**
 * Configuration
 */

// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.engine('html', require('ejs').renderFile);
app.use(morgan('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
  extended: true
}));
app.use(methodOverride());
app.use(express.static(path.join(__dirname, 'public')));

var env = process.env.NODE_ENV || 'development';

// development only
if (env === 'development') {
  app.use(errorHandler());
}

// production only
if (env === 'production') {
  // TODO
}

/**
 * Routes
 */

app.get('/', function (req, res) {
  res.render('index.html');
});

app.get(/^\/[^\/]+$/,  function (req, res) {
  res.render('404.html');
});

/**
 * Start Server
 */

http.createServer(app).listen(app.get('port'), function () {
  console.log('Express server listening on port ' + app.get('port'));
});

@@ -967,21 +967,8 @@
 %0D%0A%0D%0A
-app.get('/', 
 func
@@ -964,32 +964,37 @@
  */%0D%0A%0D%0Afunction 
+index
 (req, res) %7B%0D%0A  
@@ -1017,26 +1017,24 @@
 x.html');%0D%0A%7D
-);
 %0D%0A%0D%0Aapp.get(
@@ -1037,74 +1037,49 @@
 get(
-/%5E%5C/%5B%5E%5C/%5D+$/,  function (req, res) %7B%0D%0A  res.render('404.html');%0D%0A%7D
+'/', index);%0D%0Aapp.get(/%5E%5C/%5B%5E%5C/%5D+$/, index
 );%0D%0A

change 404 route