From 3d21751c759dfc67445e4ff0183851f3f58e98e4 Mon Sep 17 00:00:00 2001 From: Daniel Brahneborg Date: Mon, 12 Aug 2019 12:12:21 +0200 Subject: [PATCH] automatic json parsing --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index ebf338c..0d353c1 100644 --- a/index.js +++ b/index.js @@ -3,6 +3,8 @@ const express = require('express') const app = express() const path = require('path') +app.use(express.json()); + app.use('/plugin', require('./plugin')) // catch 404 and forward to error handler