Nuxt/test/fixtures/basic/extends/foo/middleware/foo.ts
Kevin Marrec 7c0d2e176c
feat(nuxt3): extends support for pages & middleware directories (#3783)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-22 19:12:54 +01:00

4 lines
104 B
TypeScript

export default defineNuxtRouteMiddleware((to) => {
to.meta.foo = 'Injected by extended middleware'
})