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

7 lines
148 B
TypeScript

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