return a single function returning a single middleware
v1.0.0