summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-04-15 16:40:48 +0200
committerGravatar default2023-04-15 16:40:48 +0200
commit95d90e5475d4d805a88ffdca48966b73329c189b (patch)
tree86dd2771f0c700bf27d95ca13774c8876dccce5c
parentAdded the 'header' field to verify_credentials. (diff)
downloadsnac2-95d90e5475d4d805a88ffdca48966b73329c189b.tar.gz
snac2-95d90e5475d4d805a88ffdca48966b73329c189b.tar.xz
snac2-95d90e5475d4d805a88ffdca48966b73329c189b.zip
Added some more dummy entry points.
-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)