LogoRobo.js
Framework

RouteDefinition

Interface: RouteDefinition

Route definition with handler and controller info. Properties are at the route level (not nested under config) per spec.

Properties

PropertyTypeDescription
controller?{ factory: string; import: string; type: string; }Controller factory information
controller.factorystring-
controller.importstring-
controller.typestring-
description?stringHuman-readable description
directorystringDirectory this route scans
exports?{ config: "required" | "optional" | "forbidden"; default: "required" | "optional" | "forbidden"; named: string[]; }Export requirements
exports.config?"required" | "optional" | "forbidden"-
exports.default?"required" | "optional" | "forbidden"-
exports.named?string[]-
filter?stringFile filter pattern (string form of regex)
handler?{ import: string; type: string; }Handler type information
handler.importstring-
handler.typestring-
key{ nested: "camelCase" | "dotNotation"; separator: string; style: "filename" | "filepath" | "parentOrFilename"; }Key generation configuration
key.nested?"camelCase" | "dotNotation"-
key.separator?string-
key.style"filename" | "filepath" | "parentOrFilename"-
multiple?booleanWhether multiple handlers per key are allowed
nesting?{ allowIndex: boolean; catchAllSegment: string; dynamicSegment: string; maxDepth: number; optionalCatchAll: string; }Nesting configuration
nesting.allowIndex?boolean-
nesting.catchAllSegment?stringCatch-all pattern (string form of regex)
nesting.dynamicSegment?stringDynamic segment pattern (string form of regex)
nesting.maxDepth?number-
nesting.optionalCatchAll?stringOptional catch-all pattern (string form of regex)
singular?stringSingular accessor name (e.g., 'command' for 'commands', 'contextMenu' for 'context')

On this page