From 99006cd6370f0502693f3fa9e3c20c83c02b364f Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 10 Apr 2026 13:37:26 +0200 Subject: switch routing to attributes --- .../Server/ServerInformationController.php | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/Controllers/Server/ServerInformationController.php (limited to 'src/Controllers/Server/ServerInformationController.php') diff --git a/src/Controllers/Server/ServerInformationController.php b/src/Controllers/Server/ServerInformationController.php new file mode 100644 index 0000000..a77bcca --- /dev/null +++ b/src/Controllers/Server/ServerInformationController.php @@ -0,0 +1,30 @@ + "$_ENV[DOMAIN]:443", + ]); + } + + #[Route(path: "/_matrix/federation/v1/version", methods: ["GET"])] + public function version(Request $request): Response + { + return new JsonResponse([ + "server" => [ + "name" => "Matrix PHP", + "version" => "0.1.0", + ], + ]); + } +} -- cgit v1.2.3