Commit 109b8d6d8a7e88e60561fdfbe6abd3698b632d9a
1 parent
d98e7fb1
Exists in
master
commit
Showing
1 changed file
with
0 additions
and
5 deletions
Show diff stats
server.js
... | ... | @@ -7,13 +7,11 @@ var cors = require('cors'); |
7 | 7 | app.use(cors()); |
8 | 8 | |
9 | 9 | var bodyParser = require('body-parser'); |
10 | -//var methodOverride = require('method-override'); | |
11 | 10 | |
12 | 11 | mongoose.connect('mongodb://127.0.0.1:27017/TodoAppDB'); |
13 | 12 | |
14 | 13 | app.use(express.static(__dirname + '/public')); |
15 | 14 | app.use(bodyParser.json()); |
16 | -//app.use(methodOverride()); | |
17 | 15 | |
18 | 16 | // define DB |
19 | 17 | var schema = new Schema({ |
... | ... | @@ -64,8 +62,5 @@ app.delete('/todolist/:id', function(req, res){ |
64 | 62 | }); |
65 | 63 | }); |
66 | 64 | |
67 | - | |
68 | - | |
69 | - | |
70 | 65 | app.listen(8080); |
71 | 66 | console.log("Server started on port 8080..."); |
72 | 67 | \ No newline at end of file | ... | ... |