瀏覽代碼

Added some more dummy entry points.

default 3 年之前
父節點
當前提交
95d90e5475
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18 0
      mastoapi.c

+ 18 - 0
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)