Signature
DValue request_query_route(Request& context, String default_path = "index")
Builds a small route tree from the first keyless query-string segment.
Fields:
raw_path: normalized but untrusted route input, for diagnostics onlyl_path: sanitized full route path, or empty string when input was rejectedpage: first path segment ofl_path, or empty string when input was rejectedvalid: boolean; true whenl_pathis safe
This supports front-controller apps that use URLs such as /?dashboard or /?workspace/projects while still allowing ordinary named query parameters alongside the route. The returned l_path is already sanitized for composing under an application-controlled route root.
Example
DValue route = request_query_route(context, "index"); print(route.is_array() ? "route\n" : "empty\n");
Output
route