diff options
author | default <nobody@localhost> | 2023-04-15 16:40:48 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-04-15 16:40:48 +0200 |
commit | 95d90e5475d4d805a88ffdca48966b73329c189b (patch) | |
tree | 86dd2771f0c700bf27d95ca13774c8876dccce5c /mastoapi.c | |
parent | 84077aa9eb3c18ed6ce812b002079ed7ee331894 (diff) |
Added some more dummy entry points.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1126,6 +1126,24 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, *ctype = "application/json"; 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 */ if (logged_in) |