MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / join_mount_path

Function join_mount_path

ra-rpc/src/rocket_helper.rs:657–667  ·  view source on GitHub ↗
(base: &str, segment: &str)

Source from the content-addressed store, hash-verified

655
656#[cfg(all(feature = "rocket", feature = "openapi"))]
657fn join_mount_path(base: &str, segment: &str) -> String {
658 if base == "/" {
659 format!("/{}", segment.trim_start_matches('/'))
660 } else {
661 format!(
662 "{}/{}",
663 base.trim_end_matches('/'),
664 segment.trim_start_matches('/')
665 )
666 }
667}

Callers 1

mount_openapi_docsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected