diff options
| author | Michael Christen <Orbiter@users.noreply.github.com> | 2025-06-19 11:27:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 11:27:33 +0200 |
| commit | 087d924e95e6064a35cc7a219cb5143807698d96 (patch) | |
| tree | 1035bc3ab80a88d3b07b2abb1bc9e232177c6ada /htroot | |
| parent | 02f1d722bba66d988f0ef668491e0ddbb74bd1ea (diff) | |
| parent | d93c0765e39d11ecc4ab9b9250408fbbc349002c (diff) | |
Merge pull request #715 from 3ele-projects/piep/fix_bookmarks_json_api
Fix bookmarks json api #713
Diffstat (limited to 'htroot')
| -rw-r--r-- | htroot/api/bookmarks/get_bookmarks.json | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/htroot/api/bookmarks/get_bookmarks.json b/htroot/api/bookmarks/get_bookmarks.json index b535f1723..95bb86f6d 100644 --- a/htroot/api/bookmarks/get_bookmarks.json +++ b/htroot/api/bookmarks/get_bookmarks.json @@ -1,12 +1,19 @@ #(display)# { -page: #[page]#, -total: #[total]#, -posts: [ +"page": #[page]#, +"total": #[total]#, +"posts": { #{bookmarks}# -{bookmark:["#[hash]#",#(public)#"public"::"private"#(/public)#,"#[title]#","#[link]#","#[tags]#","#[folders]#","#[date]#"]}#[comma]# +"#[hash]#":{ + "public": #(public)#"public"::"private"#(/public)#, + "title":"#[title]#", + "link":"#[link]#", + "tags":"#[tagsjson]#", + "folders":"#[folders]#", + "date":"#[date]#" + }#[comma]# #{/bookmarks}# -] +} } :: { |
