diff --git a/packages/app/lib/app.js b/packages/app/lib/app.js index dd40059..7c391ca 100644 --- a/packages/app/lib/app.js +++ b/packages/app/lib/app.js @@ -19,4 +19,8 @@ const registerMultipleRoutes = (app, routes) => { }); }; -module.exports = { createApp, registerRoute, registerMultipleRoutes }; +const addMiddleware = (app, middleware) => { + app.use(middleware); +} + +module.exports = { createApp, registerRoute, registerMultipleRoutes, addMiddleware };