aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-26 03:02:24 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-26 03:02:24 +0100
commiteb6648770e7de66ccafe44d114ecbb2c1eaf444d (patch)
tree2bce9f579b3ea7313f84df94b27fad813c66e9e1 /common
parent7f7deec27e69ed110c52caddaa3a0c04430e71d9 (diff)
downloadjellything-eb6648770e7de66ccafe44d114ecbb2c1eaf444d.tar
jellything-eb6648770e7de66ccafe44d114ecbb2c1eaf444d.tar.bz2
jellything-eb6648770e7de66ccafe44d114ecbb2c1eaf444d.tar.zst
implement application-side continuation tokens
Diffstat (limited to 'common')
-rw-r--r--common/src/api.rs1
-rw-r--r--common/src/routes.rs5
2 files changed, 3 insertions, 3 deletions
diff --git a/common/src/api.rs b/common/src/api.rs
index f791cd8..89cfe16 100644
--- a/common/src/api.rs
+++ b/common/src/api.rs
@@ -49,6 +49,7 @@ fields! {
NODELIST_TITLE: &str = b"titl";
NODELIST_DISPLAYSTYLE: Tag = b"dsty";
NODELIST_ITEM: Object = b"item"; // multi
+ NODELIST_CONTINUATION: &str = b"cont";
MESSAGE_KIND: &str = b"kind";
MESSAGE_TEXT: &str = b"text";
diff --git a/common/src/routes.rs b/common/src/routes.rs
index b76fc98..96f36e2 100644
--- a/common/src/routes.rs
+++ b/common/src/routes.rs
@@ -42,9 +42,8 @@ pub fn u_node_slug_progress(node: &str, time: f64) -> String {
pub fn u_items() -> String {
"/items".to_string()
}
-pub fn u_items_filter(page: usize) -> String {
- // TODO
- format!("/items?page={page}")
+pub fn u_items_cont(cont: &str) -> String {
+ format!("/items?cont={cont}")
}
pub fn u_admin_users() -> String {
"/admin/users".to_string()