diff options
Diffstat (limited to 'httpd.c')
-rw-r--r-- | httpd.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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); } |