mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-09-19 18:00:23 +03:00
Added some more dummy entry points.
This commit is contained in:
parent
84077aa9eb
commit
95d90e5475
18
mastoapi.c
18
mastoapi.c
@ -1126,6 +1126,24 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||||||
*ctype = "application/json";
|
*ctype = "application/json";
|
||||||
status = 200;
|
status = 200;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
if (strcmp(cmd, "/preferences") == 0) {
|
||||||
|
*body = xs_dup("{}");
|
||||||
|
*ctype = "application/json";
|
||||||
|
status = 200;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if (strcmp(cmd, "/markers") == 0) {
|
||||||
|
*body = xs_dup("{}");
|
||||||
|
*ctype = "application/json";
|
||||||
|
status = 200;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if (strcmp(cmd, "/followed_tags") == 0) {
|
||||||
|
*body = xs_dup("[]");
|
||||||
|
*ctype = "application/json";
|
||||||
|
status = 200;
|
||||||
|
}
|
||||||
|
|
||||||
/* user cleanup */
|
/* user cleanup */
|
||||||
if (logged_in)
|
if (logged_in)
|
||||||
|
Loading…
Reference in New Issue
Block a user