1
0
Fork 0
freesewing/packages/backend/src/middleware/bodyParser.js

10 lines
213 B
JavaScript
Raw Normal View History

2018-10-19 16:25:35 +02:00
import bodyParser from "body-parser";
export default (app) => {
// application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: true }));
// application/json
app.use(bodyParser.json());
}