Refactor to remove nested function definition

This commit is contained in:
Samer Albahra
2015-07-01 17:57:43 -05:00
parent 91b429c1dd
commit da4a540e92
2 changed files with 136 additions and 121 deletions

View File

@@ -15,7 +15,7 @@ app.get( /weather(\d+)\.py/, weather.getWeather );
// Handle 404 error
app.use( function( req, res ) {
res.status( 404 );
res.send( "Not found" );
res.send( "Error: Request not found" );
} );
// Start listening on the service port