fix(contentful-plugin): Keep existing entry fields

This commit is contained in:
Oliver Windall Juhl
2020-08-27 18:03:46 +02:00
committed by GitHub
parent 9dc6999a9a
commit eb47896668
5 changed files with 76 additions and 26 deletions
@@ -7,7 +7,11 @@ const route = Router()
export default (app) => {
app.use("/hooks", route)
route.post("/contentful", middlewares.wrap(require("./contentful").default))
route.post(
"/contentful",
bodyParser.json(),
middlewares.wrap(require("./contentful").default)
)
return app
}