diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2026-04-10 13:37:26 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2026-04-10 13:41:14 +0200 |
| commit | 99006cd6370f0502693f3fa9e3c20c83c02b364f (patch) | |
| tree | 911c34cd93444f37f4781208020853bae9c42b7a /src/Controllers/ServerDiscoveryController.php | |
| parent | 6929089fea7cf79ae5ca9e05486ba33b0e5b216d (diff) | |
switch routing to attributes
Diffstat (limited to 'src/Controllers/ServerDiscoveryController.php')
| -rw-r--r-- | src/Controllers/ServerDiscoveryController.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/Controllers/ServerDiscoveryController.php b/src/Controllers/ServerDiscoveryController.php deleted file mode 100644 index 917df14..0000000 --- a/src/Controllers/ServerDiscoveryController.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -namespace App\Controllers; - -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpFoundation\JsonResponse; - -class ServerDiscoveryController -{ - public function server(Request $request): Response - { - return new JsonResponse([ - "m.server" => "$_ENV[DOMAIN]:443", - ]); - } - - public function client(Request $request): Response - { - return new JsonResponse([ - "m.homeserver" => [ - "base_url" => "http://$_ENV[DOMAIN]", - ], - ]); - } - - public function support(Request $request): Response - { - return new JsonResponse([ - "contacts" => [], - "support_page" => "", - ]); - } -} |
