pluginservice/index.js
Daniel Brahneborg ff8012a459 index.js
2019-08-12 09:29:15 +02:00

13 lines
298 B
JavaScript

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