From 98f962c583ac3d230c32f8c0f67265c1514f2570 Mon Sep 17 00:00:00 2001 From: Daniel Brahneborg Date: Thu, 15 Aug 2019 11:13:26 +0200 Subject: [PATCH] index.js: some comments --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 2570ece..798530a 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,11 @@ const express = require('express') const app = express() + +// if the content-type is application/json, the incoming POST body is parsed automatically app.use(express.json()); + +// connect the plugin(s) app.use('/plugin', require('./plugin')) // catch 404 and forward to error handler