fixed example/express3.js

This commit is contained in:
Märt Kalmo 2017-05-10 15:13:37 +03:00
parent bb5dc8c803
commit 3f8bff0811

View File

@ -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);