diff options
| author | winter | 2024-12-09 21:31:54 +0000 |
|---|---|---|
| committer | winter | 2024-12-09 21:31:54 +0000 |
| commit | 4c7bde1400820f36caf8b2a5374007384c3018f3 (patch) | |
| tree | 83ed26ff368117b8e392f7bc28736482077fc2f4 /routes | |
| parent | 50edbd3907c26a2d4d616421de9bb51a4d083c1b (diff) | |
rename to Digitigrade / PawPub
:3
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/actor.php | 8 | ||||
| -rw-r--r-- | routes/homepage.php | 2 | ||||
| -rw-r--r-- | routes/nodeinfo.php | 12 | ||||
| -rw-r--r-- | routes/note.php | 6 | ||||
| -rw-r--r-- | routes/webfinger.php | 10 |
5 files changed, 19 insertions, 19 deletions
diff --git a/routes/actor.php b/routes/actor.php index 5879538..021b9f8 100644 --- a/routes/actor.php +++ b/routes/actor.php @@ -1,9 +1,9 @@ <?php -use WpfTest\HttpResponseStatus\NotFound; -use WpfTest\Model\Actor; -use WpfTest\Model\Note; -use WpfTest\Router; +use Digitigrade\HttpResponseStatus\NotFound; +use Digitigrade\Model\Actor; +use Digitigrade\Model\Note; +use Digitigrade\Router; Router::getInstance()->mount('/user/:handle', function (array $args) { $actor = Actor::findLocalByHandle($args['handle']); diff --git a/routes/homepage.php b/routes/homepage.php index ea5d31b..5fbc102 100644 --- a/routes/homepage.php +++ b/routes/homepage.php @@ -1,6 +1,6 @@ <?php -use WpfTest\Router; +use Digitigrade\Router; Router::getInstance()->mount('/', function (array $args) { echo '<h1>home</h1>'; diff --git a/routes/nodeinfo.php b/routes/nodeinfo.php index e85bca1..c29ac0a 100644 --- a/routes/nodeinfo.php +++ b/routes/nodeinfo.php @@ -1,6 +1,6 @@ <?php -use WpfTest\Router; +use Digitigrade\Router; Router::getInstance()->mount('/.well-known/nodeinfo', function (array $args) { json_response([ @@ -17,10 +17,10 @@ Router::getInstance()->mount('/nodeinfo/2.1', function (array $args) { json_response([ 'version' => '2.1', 'software' => [ - 'name' => 'WPF test server', + 'name' => 'Digitigrade', 'version' => '0.1.0' ], - 'protocols' => ['wpf'], + 'protocols' => ['pawpub'], 'services' => [ 'inbound' => [], 'outbound' => [] @@ -32,9 +32,9 @@ Router::getInstance()->mount('/nodeinfo/2.1', function (array $args) { ] ], 'metadata' => [ - 'nodeName' => "winter's pawsome test server", - 'nodeDescription' => 'written in php i dunno', - 'wpf' => [ + 'nodeName' => 'A Digitigrade server', + 'nodeDescription' => 'nodeinfo is hardcoded for now', + 'pawpub' => [ 'extensions' => [ // 'https://whatever.example/ext/meow', ], diff --git a/routes/note.php b/routes/note.php index 65b9313..be7eb25 100644 --- a/routes/note.php +++ b/routes/note.php @@ -1,8 +1,8 @@ <?php -use WpfTest\HttpResponseStatus\NotFound; -use WpfTest\Model\Note; -use WpfTest\Router; +use Digitigrade\HttpResponseStatus\NotFound; +use Digitigrade\Model\Note; +use Digitigrade\Router; Router::getInstance()->mount('/post/:id', function (array $args) { $note = Note::find($args['id']); diff --git a/routes/webfinger.php b/routes/webfinger.php index db29e73..cfccb22 100644 --- a/routes/webfinger.php +++ b/routes/webfinger.php @@ -1,10 +1,10 @@ <?php -use WpfTest\GlobalConfig; -use WpfTest\HttpResponseStatus\BadRequest; -use WpfTest\HttpResponseStatus\NotFound; -use WpfTest\Model\Actor; -use WpfTest\Router; +use Digitigrade\GlobalConfig; +use Digitigrade\HttpResponseStatus\BadRequest; +use Digitigrade\HttpResponseStatus\NotFound; +use Digitigrade\Model\Actor; +use Digitigrade\Router; Router::getInstance()->mount('/.well-known/webfinger', function (array $args) { if (!isset($_GET['resource'])) { |
