From 9ad4cbeecaed32e4106a7fef30bbe3d14195f78a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Mar 2021 15:16:38 +0300 Subject: wip separate handlers --- api/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api') diff --git a/api/index.php b/api/index.php index 750a95721..3bcbc7f92 100644 --- a/api/index.php +++ b/api/index.php @@ -36,8 +36,8 @@ print json_encode([ "seq" => -1, - "status" => API::STATUS_ERR, - "content" => [ "error" => API::E_NOT_LOGGED_IN ] + "status" => Handler_API::STATUS_ERR, + "content" => [ "error" => Handler_API::E_NOT_LOGGED_IN ] ]); return; @@ -48,7 +48,7 @@ $method = strtolower($_REQUEST["op"] ?? ""); - $handler = new API($_REQUEST); + $handler = new Handler_API($_REQUEST); if ($handler->before($method)) { if ($method && method_exists($handler, $method)) { -- cgit v1.2.3