diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2025-08-14 14:37:56 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2025-08-14 14:37:56 +0200 |
| commit | c135fcf9041c604b32827a1cb027010bca5915ab (patch) | |
| tree | 95a2331d5f0bc4a736aa0e716330c39b3fa1ea26 /src/routes.php | |
| parent | 3f4b51b99a4f4dc41dbdce7f34afe7e15d3d426e (diff) | |
POST login possible
Diffstat (limited to 'src/routes.php')
| -rw-r--r-- | src/routes.php | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/routes.php b/src/routes.php deleted file mode 100644 index 2d1c3e0..0000000 --- a/src/routes.php +++ /dev/null @@ -1,55 +0,0 @@ -<?php - -namespace App; - -use App\Controllers\LoginController; -use App\Controllers\ServerDiscoveryController; -use App\Controllers\ServerImplementationController; -use Symfony\Component\Routing\Loader\Configurator\RouteConfigurator; - -return function (RouteConfigurator $routes): void -{ - $routes - ->add("well_known_matrix_server", "/.well-known/matrix/server") - ->controller([ServerDiscoveryController::class, "server"]) - ->methods(["GET"]); - - $routes - ->add("well_known_matrix_client", "/.well-known/matrix/client") - ->controller([ServerDiscoveryController::class, "client"]) - ->methods(["GET"]); - - $routes - ->add("well_known_matrix_support", "/.well-known/matrix/support") - ->controller([ServerDiscoveryController::class, "support"]) - ->methods(["GET"]); - - $routes - ->add("matrix_federation_version", "/_matrix/federation/v1/version") - ->controller([ServerImplementationController::class, "version"]) - ->methods(["GET"]); - - $routes - ->add("matrix_client_versions", "/_matrix/client/versions") - ->controller([ServerImplementationController::class, "versions"]) - ->methods(["GET"]); - - # /_matrix/key/v2/server - # /_matrix/key/v2/query - # /_matrix/key/v2/query/{serverName} - - $supportedLoginTypes = [LoginController::class, "supportedLoginTypes"]; - $routes - ->add("matrix_client_r0_login_types", "/_matrix/client/r0/login") - ->controller($supportedLoginTypes) - ->methods(["GET"]); - $routes - ->add("matrix_client_v3_login_types", "/_matrix/client/v3/login") - ->controller($supportedLoginTypes) - ->methods(["GET"]); - - $routes - ->add("matrix_client_v3_login", "/_matrix/client/v3/login") - ->controller($supportedLoginTypes) - ->methods(["POST"]); -}; |
