Register a SvelteKit Action-style handler under POST, returning an Action JSON Response.
Register a DELETE handler.
Remove routes or nested routers.
method is omitted: removes the nested router with this prefix AND all routes with this exact path.method is provided: removes only the route with this exact path+method.Optionalmethod: RequestMethodsRegister a GET handler.
Handle a service-relative request by matching nested routers first, then local routes.
Register a HEAD handler.
Register an OPTIONS handler.
Register a PATCH handler.
Register a POST handler.
Register a PUT handler.
Remove all registered routes and nested routers. Useful for HMR to prevent stale route handlers from remaining registered.
Mount a nested router under a prefix.
Prefix supports dynamic segments (e.g. /users/[id]).
Register one handler for all HTTP methods.
StaticNewConvenience constructor for a new router instance.
A minimal, fast router for service-relative routing.
Optimizations: