remove old module.exports from server aswell

This commit is contained in:
Matteo Pagliazzi
2019-10-02 19:45:27 +02:00
parent e0a2528a4f
commit 45f7cf04ab
91 changed files with 116 additions and 127 deletions

View File

@@ -1,5 +1,5 @@
// TODO test this middleware
module.exports = function setupBodyMiddleware (req, res, next) {
export default function setupBodyMiddleware (req, res, next) {
req.body = req.body || {};
next();
};
}