index.js: some comments
This commit is contained in:
parent
593d28250e
commit
98f962c583
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -1,7 +1,11 @@
|
||||||
|
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
const app = express()
|
const app = express()
|
||||||
|
|
||||||
|
// if the content-type is application/json, the incoming POST body is parsed automatically
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|
||||||
|
// connect the plugin(s)
|
||||||
app.use('/plugin', require('./plugin'))
|
app.use('/plugin', require('./plugin'))
|
||||||
|
|
||||||
// catch 404 and forward to error handler
|
// catch 404 and forward to error handler
|
||||||
|
|
Loading…
Add table
Reference in a new issue