commit a7f3ba6
default
·
2023-04-11 18:10:24 +0000 UTC
parent df78584
Added many dummy lists.
1 files changed,
+69,
-1
+69,
-1
1@@ -741,7 +741,75 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2 }
3 else
4 if (strcmp(cmd, "/timelines/public") == 0) {
5- /* the public timeline */
6+ /* the public timeline (public timelines for all users) */
7+ /* TBD */
8+ *body = xs_dup("[]");
9+ *ctype = "application/json";
10+ status = 200;
11+ }
12+ else
13+ if (strcmp(cmd, "/conversations") == 0) {
14+ /* TBD */
15+ *body = xs_dup("[]");
16+ *ctype = "application/json";
17+ status = 200;
18+ }
19+ else
20+ if (strcmp(cmd, "/notifications") == 0) {
21+ /* TBD */
22+ *body = xs_dup("[]");
23+ *ctype = "application/json";
24+ status = 200;
25+ }
26+ else
27+ if (strcmp(cmd, "/filters") == 0) {
28+ /* TBD */
29+ *body = xs_dup("[]");
30+ *ctype = "application/json";
31+ status = 200;
32+ }
33+ else
34+ if (strcmp(cmd, "/favourites") == 0) {
35+ /* TBD */
36+ *body = xs_dup("[]");
37+ *ctype = "application/json";
38+ status = 200;
39+ }
40+ else
41+ if (strcmp(cmd, "/bookmarks") == 0) {
42+ *body = xs_dup("[]");
43+ *ctype = "application/json";
44+ status = 200;
45+ }
46+ else
47+ if (strcmp(cmd, "/lists") == 0) {
48+ *body = xs_dup("[]");
49+ *ctype = "application/json";
50+ status = 200;
51+ }
52+ else
53+ if (strcmp(cmd, "/scheduled_statuses") == 0) {
54+ *body = xs_dup("[]");
55+ *ctype = "application/json";
56+ status = 200;
57+ }
58+ else
59+ if (strcmp(cmd, "/follow_requests") == 0) {
60+ *body = xs_dup("[]");
61+ *ctype = "application/json";
62+ status = 200;
63+ }
64+ else
65+ if (strcmp(cmd, "/announcements") == 0) {
66+ *body = xs_dup("[]");
67+ *ctype = "application/json";
68+ status = 200;
69+ }
70+ else
71+ if (strcmp(cmd, "/custom_emojis") == 0) {
72+ *body = xs_dup("[]");
73+ *ctype = "application/json";
74+ status = 200;
75 }
76 else
77 if (strcmp(cmd, "/instance") == 0) {