Optionalheaders?: Record<string, string>OptionalheadersFile?: stringOptionalremap?: stringOptionalrequestHeaders?: Record<string, string>Merged into the request before forwarding to a handler (handler routes).
OptionalresponseHeaders?: Record<string, string>Added to the response only when not already present.
OptionalresponseRewrite?: { body?: string; headers?: Record<string, string> }Optionalbody?: stringReplace the response body outright.
Optionalheaders?: Record<string, string>Override response headers (wins over the served response's own).
Optionalvisibility?: "exported" | "private"OptionalaccessControl?: { authenticationRequired?: boolean; roles?: string[]; [key: string]: unknown }Route-level access control (§4b), enforced after authentication.
Optionalremap?: stringEffective public path the route is served at (defaults to path).
OptionalrequestHeaders?: Record<string, string>Merged into the request before forwarding to a handler (handler routes).
OptionalresponseHeaders?: Record<string, string>Added to the response only when not already present.
OptionalresponseRewrite?: { body?: string; headers?: Record<string, string> }Optionalbody?: stringReplace the response body outright.
Optionalheaders?: Record<string, string>Override response headers (wins over the served response's own).
Optionalvisibility?: "exported" | "private"
Effective public path the route is served at (defaults to
path).