附:Hono 多路由注册与中间件链,多个 handler 怎么工作
app.route 不是执行 handler,而是挂载;多个 app.route('/') 不会互相覆盖;中间件靠 await next() 串成链。用这个博客的真实挂载顺序讲清 5 个练习。
2 posts
app.route 不是执行 handler,而是挂载;多个 app.route('/') 不会互相覆盖;中间件靠 await next() 串成链。用这个博客的真实挂载顺序讲清 5 个练习。
app.tsx 只做装配:中间件顺序、路由挂载、中英文前缀、404 和静态资源边界。请求如何从 URL 走到 renderHtml。
Subscribe via RSS to get new posts automatically.
Technical questions, feedback and leads: use the guestbook.