diff options
author | Louis Brauer <louis@openbooking.ch> | 2024-05-27 12:24:17 +0200 |
---|---|---|
committer | Louis Brauer <louis@openbooking.ch> | 2024-05-27 12:24:17 +0200 |
commit | 81cf309e4d0ba6c2debccc21ea4f85e1e6245dc5 (patch) | |
tree | 10528a18c859964fa11eabe15955c85dce7ecf25 /httpd.c | |
parent | 0e21d35e802bf859aa14bce688cd9544458e9e9c (diff) |
Implement Mastodon PATCH endpoint for account profile updates
Diffstat (limited to 'httpd.c')
-rw-r--r-- | httpd.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -362,6 +362,16 @@ void httpd_connection(FILE *f) } else + if (strcmp(method, "PATCH") == 0) { + +#ifndef NO_MASTODON_API + if (status == 0) + status = mastoapi_patch_handler(req, q_path, + payload, p_size, &body, &b_size, &ctype); +#endif + + } + else if (strcmp(method, "OPTIONS") == 0) { status = HTTP_STATUS_OK; } |