Unexpected value of absolutePath(c) when used within a .route()
Hi. Is it expected for
route()
to reset the basePath context? I am on the latest version of @hono/node-server ("@hono/node-server": "^1.19.0") and stumbled uppon this behavior which I did not expect:
3 Replies
what you're looking for is
new Hono().route("/auth", AuthApp)
Oh, okay
So I suppose the behavior of the second example is indeed intended?
check out the json docs in the source: https://github.com/honojs/hono/blob/98cb9633174a9a1a5279c37ee2a262658c6af60c/src/helper/route/index.ts#L73