diff options
| author | 2023-04-15 16:40:48 +0200 | |
|---|---|---|
| committer | 2023-04-15 16:40:48 +0200 | |
| commit | 95d90e5475d4d805a88ffdca48966b73329c189b (patch) | |
| tree | 86dd2771f0c700bf27d95ca13774c8876dccce5c | |
| parent | Added the 'header' field to verify_credentials. (diff) | |
| download | snac2-95d90e5475d4d805a88ffdca48966b73329c189b.tar.gz snac2-95d90e5475d4d805a88ffdca48966b73329c189b.tar.xz snac2-95d90e5475d4d805a88ffdca48966b73329c189b.zip | |
Added some more dummy entry points.
| -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, | |||
| 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) |