- _logFacilities_ - the SVR.JS log facilities object
- _config_ - the SVR.JS configuration object
- _next_ - the callback which passes the execution to SVR.JS mods and SVR.JS internal handlers.
The function is a SVR.JS mod callback. You can read more about the SVR.JS mod callbacks in the [SVR.JS mod API documentation](https://svrjs.org/docs/api/svrjs-api).
### _router.route(method, path, callback)_
Parameters:
- _method_ - the HTTP method, for which the route applies (_String_)
- _path_ - the route path (begins with "/"), for which the route applies. The route paths are process via the [`path-to-regexp` library](https://www.npmjs.com/package/path-to-regexp) (_String_)
The _callback_ parameter has these arguments of the SVR.JS mod callback:
- _req_ - the SVR.JS request object
- _res_ - the SVR.JS response object
- _logFacilities_ - the SVR.JS log facilities object
- _config_ - the SVR.JS configuration object
- _next_ - the callback which passes the execution to other routes, SVR.JS mods and SVR.JS internal handlers.
The _req_ object has an additional _params_ parameter, which contains request parameters, for example if the request URL is `/api/task/1`, and the route path is `/api/task/:id`, then the _req.params_ object is a `null` prototype object with the `id` property set to `"1"`.
You can read more about the SVR.JS mod callbacks in the [SVR.JS mod API documentation](https://svrjs.org/docs/api/svrjs-api).
The function adds a pass-through (can be middleware) to the SVRouter router. The pass-through can be to an another SVRouter router (the absolute request URLs need to be provided for the _router.route_ function in the SVRouter router). Note that the request URL is not rewritten though, unlike in the `router` library, so if you write middleware for SVRouter, you may need to include the request URL prefix in the parameters of the function that returns the SVR.JS mod callback.
The function adds middleware compatible with the `router` library to the SVRouter router. Middleware that depends on Express's request and response properties may not work.