`registerMiddleware` sounds awkward. should be `registeredMiddleware()` or just `app.mojito.middlewares()`.