summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c18
1 files changed, 18 insertions, 0 deletions
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,
1126 *ctype = "application/json"; 1126 *ctype = "application/json";
1127 status = 200; 1127 status = 200;
1128 } 1128 }
1129 else
1130 if (strcmp(cmd, "/preferences") == 0) {
1131 *body = xs_dup("{}");
1132 *ctype = "application/json";
1133 status = 200;
1134 }
1135 else
1136 if (strcmp(cmd, "/markers") == 0) {
1137 *body = xs_dup("{}");
1138 *ctype = "application/json";
1139 status = 200;
1140 }
1141 else
1142 if (strcmp(cmd, "/followed_tags") == 0) {
1143 *body = xs_dup("[]");
1144 *ctype = "application/json";
1145 status = 200;
1146 }
1129 1147
1130 /* user cleanup */ 1148 /* user cleanup */
1131 if (logged_in) 1149 if (logged_in)