aboutsummaryrefslogtreecommitdiff
path: root/common/src/routes.rs
blob: 71ca3fa703f546ae958a96da54512b280e72be1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}