2022-03-30 15:59:28 +00:00
|
|
|
---
|
|
|
|
template: Example
|
|
|
|
---
|
|
|
|
|
|
|
|
# Middleware
|
|
|
|
|
2022-04-16 13:53:36 +00:00
|
|
|
This example shows how to add route middleware with the `middleware/` directory or with a plugin, and how to use them globally or per page.
|
2022-03-30 15:59:28 +00:00
|
|
|
|
2022-04-06 05:56:08 +00:00
|
|
|
::ReadMore{link="/guide/directory-structure/middleware"}
|
2022-03-30 15:59:28 +00:00
|
|
|
::
|
|
|
|
|
|
|
|
::sandbox{repo="nuxt/framework" branch="main" dir="examples/routing/middleware" file="app.vue"}
|