the middleware parameter is just a dynamic type so...
# kvision
r
the middleware parameter is just a dynamic type so you would have to generate the correct JS object