Skip to main content

org_mcp_server/resources/
utils.rs

1use urlencoding::decode;
2
3use crate::core::OrgModeRouter;
4
5impl OrgModeRouter {
6    pub fn decode_uri_path(path: &str) -> String {
7        decode(path)
8            .map(|cow| cow.into_owned())
9            .unwrap_or_else(|_| path.to_string())
10    }
11}