11 lines
292 B
JavaScript
11 lines
292 B
JavaScript
|
|
const express = require('express')
|
|
const app = express()
|
|
app.use(express.json());
|
|
app.use('/plugin', require('./plugin'))
|
|
|
|
// catch 404 and forward to error handler
|
|
const createError = require('http-errors')
|
|
app.use(function(req, res, next) { next(createError(404)) })
|
|
|
|
module.exports = app
|