feat(adapters): pass app to middleware
#2114
+92
−54
Merged
app to middleware
#2114