spee.ch/server/routes/utils/multipartMiddleware.js
2018-06-05 19:34:24 -07:00

5 lines
232 B
JavaScript

const multipart = require('connect-multiparty');
const { publishing: { uploadDirectory } } = require('@config/siteConfig');
const multipartMiddleware = multipart({uploadDir: uploadDirectory});
module.exports = multipartMiddleware;