Now.js Framework Documentation
RouteMetadataHandler
RouteMetadataHandler
Route Metadata Handler - Manage route metadata and conventions
Generated from source on 2026-08-21. Descriptions come from JSDoc in the file.
Re-rundocs_scaffoldwhen the code changes; hand edits are lost on regeneration
Source
- File:
Now/js/RouteMetadataHandler.js(177 lines) - Form: object literal (singleton)
Public methods (7)
applyConventions(path, metadata, conventions)
Apply conventions based on route path
applyConventionsWithLogging(path, metadata, conventions)
Apply conventions with detailed logging
createSummary(path, metadata)
Create route summary for debugging
extractMetadata(config, path, conventions = {})
Extract metadata from route configuration
getAuthRequirement(metadata, defaultRequireAuth = false)
Determine authentication requirement based on metadata
matchesPattern(path, pattern)
Check if path matches pattern
validateMetadata(metadata, path)
Validate metadata configuration
Depends on
SecurityConventions