mirror of
https://github.com/honojs/hono.git
synced 2024-11-30 01:56:18 +01:00
9 lines
211 B
TypeScript
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')
|
|
}
|
|
}
|