Nuxt/test/fixtures/basic/middleware/routeRulesMiddleware.ts

4 lines
97 B
TypeScript

export default defineNuxtRouteMiddleware((to) => {
to.meta.hello = 'Hello from routeRules!'
})