commit 95d90e5

default  ·  2023-04-15 14:40:48 +0000 UTC
parent 84077aa
Added some more dummy entry points.
1 files changed,  +18, -0
+18, -0
 1@@ -1126,6 +1126,24 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2         *ctype = "application/json";
 3         status = 200;
 4     }
 5+    else
 6+    if (strcmp(cmd, "/preferences") == 0) {
 7+        *body  = xs_dup("{}");
 8+        *ctype = "application/json";
 9+        status = 200;
10+    }
11+    else
12+    if (strcmp(cmd, "/markers") == 0) {
13+        *body  = xs_dup("{}");
14+        *ctype = "application/json";
15+        status = 200;
16+    }
17+    else
18+    if (strcmp(cmd, "/followed_tags") == 0) {
19+        *body  = xs_dup("[]");
20+        *ctype = "application/json";
21+        status = 200;
22+    }
23 
24     /* user cleanup */
25     if (logged_in)