diff options
Diffstat (limited to 'common/src')
| -rw-r--r-- | common/src/api.rs | 1 | ||||
| -rw-r--r-- | common/src/routes.rs | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/common/src/api.rs b/common/src/api.rs index ea1a0c6..5d9c72d 100644 --- a/common/src/api.rs +++ b/common/src/api.rs @@ -28,6 +28,7 @@ fields! { VIEW_ADMIN_INFO: Object = b"adin"; VIEW_ADMIN_LOG: Object = b"adlo"; VIEW_ADMIN_USER_LIST: Object = b"adul"; + VIEW_ADMIN_USER: Object = b"adus"; VIEW_USER_SETTINGS: Object = b"uset"; ADMIN_IMPORT_BUSY: () = b"busy"; diff --git a/common/src/routes.rs b/common/src/routes.rs index b2a10b1..b76fc98 100644 --- a/common/src/routes.rs +++ b/common/src/routes.rs @@ -24,9 +24,6 @@ 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}") } @@ -82,3 +79,9 @@ pub fn u_stats() -> String { pub fn u_search() -> String { "/search".to_owned() } +pub fn u_admin_user(login: &str) -> String { + format!("/admin/user/{login}") +} +pub fn u_admin_user_remove(login: &str) -> String { + format!("/admin/user/{login}/remove") +} |