summaryrefslogtreecommitdiff
path: root/src/Router
diff options
context:
space:
mode:
Diffstat (limited to 'src/Router')
-rw-r--r--src/Router/Router.php2
-rw-r--r--src/Router/routes_client_server.php4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/Router/Router.php b/src/Router/Router.php
index 1739e7c..61abed1 100644
--- a/src/Router/Router.php
+++ b/src/Router/Router.php
@@ -66,6 +66,8 @@ class Router
return new ErrorResponse(ErrorCode::NOT_FOUND, "404", Response::HTTP_NOT_FOUND);
} catch (MethodNotAllowedException $exception) {
return new ErrorResponse(ErrorCode::FORBIDDEN, "403", Response::HTTP_FORBIDDEN);
+ } catch (\LogicException $exception) { // display logic exceptions normally
+ throw $exception;
} catch (\Exception $exception) {
return new ErrorResponse(
ErrorCode::UNKNOWN,
diff --git a/src/Router/routes_client_server.php b/src/Router/routes_client_server.php
index 78e2e48..a0b117b 100644
--- a/src/Router/routes_client_server.php
+++ b/src/Router/routes_client_server.php
@@ -31,10 +31,6 @@ return function (RouteConfigurator $routes): void
->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")