Registers a route for HTTP DELETE requests.
The URL path or pattern for the route.
-An array of middleware or handler functions to execute for this route.
+An array of middleware or handler functions to execute for this route.
The current instance for method chaining.
-Registers a route for HTTP GET requests.
+Registers a route for HTTP GET requests.
The URL path or pattern for the route.
-An array of middleware or handler functions to execute for this route.
+An array of middleware or handler functions to execute for this route.
The current instance for method chaining.
-Finds and returns the route matching the given path and method.
+Finds and returns the route matching the given path and method.
The requested path.
The HTTP method (e.g., "GET").
The matching route or undefined.
-Registers a new route group with common base path and middleware.
+Registers a new route group with common base path and middleware.
The base path or RegExp.
Callback to define routes within the group.
The Router instance for chaining.
-Registers a route for HTTP HEAD requests.
+Registers a route for HTTP HEAD requests.
The URL path or pattern for the route.
-An array of middleware or handler functions to execute for this route.
+An array of middleware or handler functions to execute for this route.
The current instance for method chaining.
-Dynamically imports routes from a directory and registers them.
+Registers a route for HTTP PATCH requests.
+Registers a route for HTTP PATCH requests.
The URL path or pattern for the route.
-An array of middleware or handler functions to execute for this route.
+An array of middleware or handler functions to execute for this route.
The current instance for method chaining.
-Registers a route for HTTP POST requests.
+Registers a route for HTTP POST requests.
The URL path or pattern for the route.
-An array of middleware or handler functions to execute for this route.
+An array of middleware or handler functions to execute for this route.
The current instance for method chaining.
-Registers a route for HTTP PUT requests.
+Registers a route for HTTP PUT requests.
The URL path or pattern for the route.
-An array of middleware or handler functions to execute for this route.
+An array of middleware or handler functions to execute for this route.
The current instance for method chaining.
-Serves static files from a specified directory.
+Serves static files from a specified directory.
Options for serving static files.
Optional
dir?: stringDirectory containing the static files.
Optional
route?: RegExpRegular expression to match the route for static files.
The Router instance for chaining.
-
Registers a route for HTTP DELETE requests.
+