From 1ecbcb51445ed7bae77b6a721025b349ef167a23 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Sun, 26 Jan 2020 23:32:54 +0300 Subject: [PATCH] Router variable name update --- src/Server/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Server/Router.php b/src/Server/Router.php index f134746..733927a 100644 --- a/src/Server/Router.php +++ b/src/Server/Router.php @@ -40,14 +40,14 @@ class Router { $authorization = new Authorization(); $apiHandler = stack(ApiController::getRouterCallback($client, ApiExtensions::class), $authorization); - $combinedHandler = stack(SystemController::getRouterCallback($client, SystemApiExtensions::class), $authorization); + $systemApiHandler = stack(SystemController::getRouterCallback($client, SystemApiExtensions::class), $authorization); $eventsHandler = stack(EventsController::getRouterCallback($client), $authorization); foreach (['GET', 'POST'] as $method) { $this->router->addRoute($method, '/api/{method}[/]', $apiHandler); $this->router->addRoute($method, '/api/{session:.*?[^/]}/{method}[/]', $apiHandler); - $this->router->addRoute($method, '/system/{method}[/]', $combinedHandler); + $this->router->addRoute($method, '/system/{method}[/]', $systemApiHandler); } $this->router->addRoute('GET', '/events[/]', $eventsHandler);