index.js: some comments

This commit is contained in:
Daniel Brahneborg 2019-08-15 11:13:26 +02:00
parent 593d28250e
commit 98f962c583

View file

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