summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index ec7a79f..d5de87c 100644
--- a/httpd.c
+++ b/httpd.c
@@ -177,6 +177,12 @@ void httpd_connection(FILE *f)
status = activitypub_get_handler(req, q_path, &body, &b_size, &ctype);
if (status == 0)
+ status = oauth_get_handler(req, q_path, &body, &b_size, &ctype);
+
+ if (status == 0)
+ status = mastoapi_get_handler(req, q_path, &body, &b_size, &ctype);
+
+ if (status == 0)
status = html_get_handler(req, q_path, &body, &b_size, &ctype);
}
else
@@ -186,6 +192,14 @@ void httpd_connection(FILE *f)
payload, p_size, &body, &b_size, &ctype);
if (status == 0)
+ status = oauth_post_handler(req, q_path,
+ payload, p_size, &body, &b_size, &ctype);
+
+ if (status == 0)
+ status = mastoapi_post_handler(req, q_path,
+ payload, p_size, &body, &b_size, &ctype);
+
+ if (status == 0)
status = html_post_handler(req, q_path,
payload, p_size, &body, &b_size, &ctype);
}