honojs / website

Repository for hono.dev
https://hono.dev
78 stars 261 forks source link

Added docs for creating middleware #320

Closed NicoPlyley closed 5 months ago

NicoPlyley commented 5 months ago

Hi @yusukebe,

I added what was mentioned in #317 to the existing custom middleware section in the guide. I tried to keep it short but informative. I was debating adding another example for adding parameters to custom middleware, but I figured linking to the createMiddleware factory would give a user the answer they are looking for.

Let me know if you want any updates or changes!

closes: #317

yusukebe commented 5 months ago

@NicoPlyley

Thanks! I'll merge now.