From 6a23016f98849f510ac6a55f83854241bf046ea0 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 11 Sep 2020 08:29:48 +0300 Subject: [PATCH] Registering routes --- src/Console/Commands/StartServer.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Console/Commands/StartServer.php b/src/Console/Commands/StartServer.php index 3e52d93..1a03aaa 100644 --- a/src/Console/Commands/StartServer.php +++ b/src/Console/Commands/StartServer.php @@ -78,6 +78,8 @@ class StartServer extends Command $this->configureRestartTimer(); + $this->configureRoutes(); + $this->startServer(); } @@ -159,6 +161,16 @@ class StartServer extends Command }); } + /** + * Register the routes for the server. + * + * @return void + */ + protected function configureRoutes() + { + WebSocketRouter::routes(); + } + /** * Configure the HTTP logger class. *