Nevermind, I understood better the usage of the function reading the middleware below.