mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-17 03:14:46 +00:00
7 lines
223 B
TypeScript
7 lines
223 B
TypeScript
|
import { useNuxt } from './context'
|
||
|
|
||
|
/** Adds a new server middleware to the end of the server middleware array. */
|
||
|
export function addServerMiddleware (middleware) {
|
||
|
useNuxt().options.serverMiddleware.push(middleware)
|
||
|
}
|