0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-30 01:56:18 +01:00
hono/deno_dist/middleware/powered-by/index.ts

9 lines
211 B
TypeScript

import type { MiddlewareHandler } from '../../types.ts'
export const poweredBy = (): MiddlewareHandler => {
return async (c, next) => {
await next()
c.res.headers.append('X-Powered-By', 'Hono')
}
}