0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
hono/deno_dist/middleware/powered-by/index.ts

10 lines
241 B
TypeScript
Raw Normal View History

2022-07-02 06:09:45 +00:00
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')
}
}