Function perseus::utils::get_path_prefix_server
source · pub fn get_path_prefix_server() -> String
Expand description
Gets the path prefix to apply on the server. This uses the
PERSEUS_BASE_PATH
environment variable, which avoids hardcoding
something as changeable as this into the final binary. Hence however, that
variable must be the same as what’s set in <base>
(done automatically).
Trailing forward slashes will be trimmed automatically.