ReadonlyprefixThe group's path prefix, /api/v1.
Protected ReadonlyregistryA route for every method (a named method's route on the same path comes first).
Registers the routes on app (a new Hono app by default), then the
unmatched handlers, the most specific prefix first. WebPlugin does it
on the Kernel's app; paths are the full ones, so compile onto the app
that serves them rather than a sub-app mounted under a prefix.
A subgroup under prefix: this group's middleware, then middleware.
A route for method (or several): the group's middleware, then handlers.
What happens to a request under this group's prefix that no route
takes (an unknown path, a method with no route, a made-up method): it
runs use (by default the group's middleware), then answers 404, or
405 with then: 'auto', by the response contract. Called again for the
same prefix, the last call wins.
Adds middleware to the routes (and subgroups) added after this call.
Routes in groups, with the middleware each group shares:
The routes are registered on Hono by priority, not in the order they were added: static segments before parameters before wildcards (
/users/mebefore/users/:id), and a route for a named method before one for every method. Two routes with the same method and path shape are an error.