Commit 00f5019f5eac83150bf3312bd05c3633a85d1542

Authored by Paul Wallace
1 parent 5c8dd66193
Exists in master

Fix to be like before

Showing 1 changed file with 2 additions and 5 deletions Side-by-side Diff

1 1 var express = require('express');
2   -var crime = require('./routes/crime');
3 2  
4   -
5 3 var app = express();
6 4  
7 5 app.set('port', (process.env.PORT || 5000));
8 6  
9   -app.use(express.static(__dirname + '../public'));
  7 +app.use(express.static(__dirname + '/public'));
10 8  
11 9 // views is directory for all template files
12 10 app.set('views', __dirname + '/views');
... ... @@ -19,8 +17,6 @@
19 17 app.get('/landing', function(request, response) {
20 18 response.render('pages/landing');
21 19 });
22   -
23   -app.get('/api', crime.view);
24 20  
25 21 app.listen(app.get('port'), function() {
26 22 console.log('Node app is running on port', app.get('port'));