ProtectedconstructorThe group's path prefix, /api/v1.
ReadonlyprefixThe group's path prefix, /api/v1.
Protected ReadonlyregistryA route for every method (a named method's route on the same path comes first).
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 under a prefix with the middleware they share. A subgroup inherits its parent's middleware;
use()adds middleware to the routes added after it. SeeRouter.