Skip to main content

resolve_serving_route_prefix

Function resolve_serving_route_prefix 

Source
pub fn resolve_serving_route_prefix(args: &ModeArgs) -> String
Expand description

Resolves the serving route prefix relative to the crate path.

Returns the forward-slash-separated path of the serving root relative to the crate path. Used for server route registration and URL display.

§Arguments

  • &ModeArgs - The CLI arguments containing crate_path, www_dir, wasm_pack_args.

§Returns

  • String - The serving route prefix (e.g. www or wwws).