I\'m trying to create a redirect in nuxt.js, using a middleware, and this is what I wrote:
export default function({ route, redirect }) { if (route === "/&