Nuxt/test/fixtures/basic/extends/foo/server/middleware/foo.ts

7 lines
153 B
TypeScript

import type { ServerResponse } from 'node:http'
export default (_, res: ServerResponse, next) => {
res.setHeader('injected-header', 'foo')
next()
}