fixed example/express3.js
This commit is contained in:
1 parent
bb5dc8c803
commit
3f8bff0811
1 file changed
+1
-1
@@ -4,7 +4,7 @@ const express = require('express');
|
||||
const bodyParser = require('body-parser');
|
||||
const app = express();
|
||||
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.json()); // before request handlers
|
||||
|
||||
app.get('/api/tasks', getTasks);
|
||||
app.post('/api/tasks', saveTask);
|
||||
|
||||
Reference in new issue
Block a user