0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00
hono/deno_dist/middleware/powered-by/index.ts
2022-07-02 15:09:45 +09:00

10 lines
241 B
TypeScript

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