diff options
Diffstat (limited to 'common/src')
| -rw-r--r-- | common/src/api.rs | 3 | ||||
| -rw-r--r-- | common/src/routes.rs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/common/src/api.rs b/common/src/api.rs index bec33ba..ea1a0c6 100644 --- a/common/src/api.rs +++ b/common/src/api.rs @@ -27,6 +27,7 @@ fields! { VIEW_ADMIN_IMPORT: Object = b"adim"; VIEW_ADMIN_INFO: Object = b"adin"; VIEW_ADMIN_LOG: Object = b"adlo"; + VIEW_ADMIN_USER_LIST: Object = b"adul"; VIEW_USER_SETTINGS: Object = b"uset"; ADMIN_IMPORT_BUSY: () = b"busy"; @@ -35,6 +36,8 @@ fields! { ADMIN_INFO_TEXT: &str = b"aite"; ADMIN_LOG_MESSAGE: &str = b"aite"; + ADMIN_USER_LIST_ITEM: Object = b"item"; + NKU_NODE: Object = b"node"; NKU_UDATA: Object = b"udat"; NKU_ROLE: &str = b"role"; diff --git a/common/src/routes.rs b/common/src/routes.rs index 3ee1e4c..3266745 100644 --- a/common/src/routes.rs +++ b/common/src/routes.rs @@ -24,6 +24,9 @@ pub fn u_image(path: &str, size: usize) -> String { pub fn u_image_fallback_person(name: &str, size: usize) -> String { format!("/image_fallback/person/{name}?size={size}") } +pub fn u_user(login: &str) -> String { + format!("/u/{login}") +} pub fn u_node_slug_watched(node: &str, state: &str) -> String { format!("/n/{node}/watched?state={state}") } |