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

4 lines
107 B
TypeScript
Raw Permalink Normal View History

2022-03-08 18:03:21 +00:00
export default defineNuxtRouteMiddleware((to) => {
to.meta.auth = 'Injected by injectAuth middleware'
})