Skip to main content

dynamic_dispatch_resolve_route_fixture

Function dynamic_dispatch_resolve_route_fixture 

Source
pub fn dynamic_dispatch_resolve_route_fixture(
    app_root: &Path,
    relative_path: &str,
) -> Option<String>
Expand description

Resolves a route fixture path below an app root without traversal.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::dynamic_dispatch_resolve_route_fixture can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::dynamic_dispatch_resolve_route_fixture.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::dynamic_dispatch_resolve_route_fixture(std::path::Path::new("apps/dev_docs"), "page");