diff options
Diffstat (limited to 'common/src/routes.rs')
-rw-r--r-- | common/src/routes.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/common/src/routes.rs b/common/src/routes.rs new file mode 100644 index 0000000..71ca3fa --- /dev/null +++ b/common/src/routes.rs @@ -0,0 +1,17 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2025 metamuffin <metamuffin.org> +*/ + +use crate::NodeID; + +pub fn u_home() -> String { + "/home".to_owned() +} +pub fn u_node_id(node: NodeID) -> String { + format!("/n/{}", node) +} +pub fn u_node_slug(node: &str) -> String { + format!("/n/{}", node) +} |