mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 10:51:01 +00:00
10 lines
241 B
TypeScript
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')
|
||
|
}
|
||
|
}
|