summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-11 20:10:24 +0200
committerdefault <nobody@localhost>2023-04-11 20:10:24 +0200
commita7f3ba602768e39e2d55ae0329b38538edc5fa2c (patch)
treeab447132e1eacd39d898639bd744710dc2f41d6e /mastoapi.c
parentdf785849115e72f6a0e3dc694d2141ecf1fe16bb (diff)
Added many dummy lists.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c70
1 files changed, 69 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index c846223..5755ad7 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -741,7 +741,75 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
}
else
if (strcmp(cmd, "/timelines/public") == 0) {
- /* the public timeline */
+ /* the public timeline (public timelines for all users) */
+ /* TBD */
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/conversations") == 0) {
+ /* TBD */
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/notifications") == 0) {
+ /* TBD */
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/filters") == 0) {
+ /* TBD */
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/favourites") == 0) {
+ /* TBD */
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/bookmarks") == 0) {
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/lists") == 0) {
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/scheduled_statuses") == 0) {
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/follow_requests") == 0) {
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/announcements") == 0) {
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
+ if (strcmp(cmd, "/custom_emojis") == 0) {
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
}
else
if (strcmp(cmd, "/instance") == 0) {