diff options
| author | grunfink <grunfink@noreply.codeberg.org> | 2024-01-29 08:37:52 +0000 |
|---|---|---|
| committer | grunfink <grunfink@noreply.codeberg.org> | 2024-01-29 08:37:52 +0000 |
| commit | 8fe76454d322ef26489b075e43a02af1ce7f8424 (patch) | |
| tree | c07e3d4badfed27fb6ac4f8a23687ec435300092 /httpd.c | |
| parent | d839654ccbea5c9d9f9b01d9669a48bf6e42b56f (diff) | |
| parent | d7978621ed3756dd3d021631d7f735ef0d8f39d4 (diff) | |
Merge pull request 'add support for Subway Tooter app' (#111) from pswilde/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/111
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -223,6 +223,14 @@ int server_get_handler(xs_dict *req, const char *q_path, srv_baseurl); } else + if (strcmp(q_path, "/.well-known/host-meta") == 0) { + status = 200; + *ctype = "application/xrd+xml"; + *body = xs_str_new("<XRD>" + "<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"%s/.well-known/webfinger?resource={uri}\"/>" + "</XRD>"); + } + else if (strcmp(q_path, "/nodeinfo_2_0") == 0) { status = 200; *ctype = "application/json; charset=utf-8"; |