Slon/Modules/NodeInfo: Implement .well-known/nodeinfo and nodeinfo/2.0

This commit is contained in:
Alec Murphy 2025-02-21 17:44:54 -05:00
parent 545d408512
commit 614e68194b
5 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,4 @@
if (!StrICmp("/nodeinfo/2.0", @slon_http_request_path(session))) {
@slon_nodeinfo_20(session);
return;
}

View file

@ -3,6 +3,11 @@ if (!StrICmp("/.well-known/host-meta", @slon_http_request_path(session))) {
return;
}
if (!StrICmp("/.well-known/nodeinfo", @slon_http_request_path(session))) {
@slon_nodeinfo(session);
return;
}
if (!StrICmp("/.well-known/oauth-authorization-server", @slon_http_request_path(session))) {
@slon_oauth_well_known(session);
return;