Middleware should execute prior to looking up matching routes.