diff options
| author | winter | 2024-12-13 23:53:23 +0000 |
|---|---|---|
| committer | winter | 2024-12-13 23:53:23 +0000 |
| commit | 2713c1f73a39d4106936d4c52bf8f18d810d7f3c (patch) | |
| tree | ca3ab4c78b7a45fe4ddc218ce4e45f181cd179e2 /routes/nodeinfo.php | |
| parent | ae37b73d1f15ffe5c4c9a32c5de349cd746ebc48 (diff) | |
add instance information
Diffstat (limited to 'routes/nodeinfo.php')
| -rw-r--r-- | routes/nodeinfo.php | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/routes/nodeinfo.php b/routes/nodeinfo.php index c29ac0a..93f103c 100644 --- a/routes/nodeinfo.php +++ b/routes/nodeinfo.php @@ -37,10 +37,21 @@ Router::getInstance()->mount('/nodeinfo/2.1', function (array $args) { 'pawpub' => [ 'extensions' => [ // 'https://whatever.example/ext/meow', - ], - // 'pushEndpoint' => path_to_uri('/push'), - // 'authEndpoint' => path_to_uri('/auth') - ], + ] + ] ] ], 'application/json; profile="http://nodeinfo.diaspora.software/ns/schema/2.1#"'); +}); + +Router::getInstance()->mount('/.well-known/pawpub-instance', function (array $args) { + json_response([ + 'name' => 'A Digitigrade server', + 'description' => 'metadata is hardcoded for now', + 'softwareName' => 'Digitigrade', + 'softwareVersion' => '0.1.0', + 'softwareDescription' => 'An experimental PawPub server', + 'endpoints' => [ + + ] + ]); });
\ No newline at end of file |
