From 95d90e5475d4d805a88ffdca48966b73329c189b Mon Sep 17 00:00:00 2001 From: default Date: Sat, 15 Apr 2023 16:40:48 +0200 Subject: [PATCH] Added some more dummy entry points. --- mastoapi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mastoapi.c b/mastoapi.c index 3f81e94..4c3b5af 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -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)