mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Added many dummy lists.
This commit is contained in:
parent
df78584911
commit
a7f3ba6027
1 changed files with 69 additions and 1 deletions
70
mastoapi.c
70
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) {
|
||||
|
|
Loading…
Reference in a new issue