Slon/Modules/NodeInfo: Implement .well-known/nodeinfo and nodeinfo/2.0
This commit is contained in:
parent
545d408512
commit
614e68194b
5 changed files with 44 additions and 0 deletions
4
Slon/Endpoints/Get/NodeInfo.HC
Normal file
4
Slon/Endpoints/Get/NodeInfo.HC
Normal file
|
@ -0,0 +1,4 @@
|
|||
if (!StrICmp("/nodeinfo/2.0", @slon_http_request_path(session))) {
|
||||
@slon_nodeinfo_20(session);
|
||||
return;
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue