const express = require('express') const app = express() const path = require('path') 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