Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
10
node_modules/hono/dist/middleware/powered-by/index.js
generated
vendored
Normal file
10
node_modules/hono/dist/middleware/powered-by/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// src/middleware/powered-by/index.ts
|
||||
var poweredBy = (options) => {
|
||||
return async function poweredBy2(c, next) {
|
||||
await next();
|
||||
c.res.headers.set("X-Powered-By", options?.serverName ?? "Hono");
|
||||
};
|
||||
};
|
||||
export {
|
||||
poweredBy
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue