summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-13 15:32:13 +0200
committerdefault <nobody@localhost>2023-04-13 15:32:13 +0200
commit2d5d63554c32c7166933ce0d7d842c05471c83fe (patch)
treeebdd3c6d85b410865790b40c5e9a3c8041558762 /mastoapi.c
parentc2f5748a9d461f8e8b97a777a557e1106478e413 (diff)
Started working on a notification list.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 7029dfb..80f1619 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -855,6 +855,11 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
else
if (strcmp(cmd, "/notifications") == 0) {
/* TBD */
+ {
+ xs *j = xs_json_dumps_pp(args, 4);
+ printf("notification args:\n%s\n", j);
+ }
+
*body = xs_dup("[]");
*ctype = "application/json";
status = 200;