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.php5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Router/Router.php b/src/Router/Router.php
index 377821f..6859771 100644
--- a/src/Router/Router.php
+++ b/src/Router/Router.php
@@ -2,11 +2,11 @@
namespace App\Router;
-use App\Errors\ErrorCode;
use App\Errors\ErrorResponse;
use App\Errors\Exception;
use App\Singleton;
use App\Support\Logger;
+use Matrix\Enums\ErrorCode;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
diff --git a/src/Router/routes_client_server.php b/src/Router/routes_client_server.php
index 590520b..e888782 100644
--- a/src/Router/routes_client_server.php
+++ b/src/Router/routes_client_server.php
@@ -108,4 +108,9 @@ return function (RouteConfigurator $routes): void
->add("matrix_client_v3_rooms_id_read_markers", "/_matrix/client/v3/rooms/{roomId}/read_markers")
->controller([RoomController::class, "readMarkers"])
->methods(["POST"]);
+
+ $routes
+ ->add("matrix_client_v3_rooms_id_messages", "/_matrix/client/v3/rooms/{roomId}/messages")
+ ->controller([RoomController::class, "getMessages"])
+ ->methods(["GET"]);
};