Fixing module export
Correct middleware list
Merge branch 'fix/getMiddlewares'