buildRouterOptions() — fastify Function Reference
Architecture documentation for the buildRouterOptions() function in route.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD e1ed8564_33b9_5223_6731_c306551612a8["buildRouterOptions()"] de54192b_022b_f89b_5a43_a2593cb4df49["route.js"] e1ed8564_33b9_5223_6731_c306551612a8 -->|defined in| de54192b_022b_f89b_5a43_a2593cb4df49 style e1ed8564_33b9_5223_6731_c306551612a8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/route.js lines 616–632
function buildRouterOptions (options, defaultOptions) {
const routerOptions = options.routerOptions || Object.create(null)
const usedDeprecatedOptions = routerKeys.filter(key => Object.hasOwn(options, key))
if (usedDeprecatedOptions.length > 0) {
FSTDEP022(usedDeprecatedOptions.join(', '))
}
for (const key of routerKeys) {
if (!Object.hasOwn(routerOptions, key)) {
routerOptions[key] = options[key] ?? defaultOptions[key]
}
}
return routerOptions
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does buildRouterOptions() do?
buildRouterOptions() is a function in the fastify codebase, defined in lib/route.js.
Where is buildRouterOptions() defined?
buildRouterOptions() is defined in lib/route.js at line 616.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free