From c0ffa3a2d1e3c2203c7afbf87a5c8a622b9d4e87 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Wed, 3 Jan 2024 02:26:15 +0300 Subject: [PATCH] Update Router.php --- webfiori/framework/router/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webfiori/framework/router/Router.php b/webfiori/framework/router/Router.php index 80e3ef0e..795eed6c 100644 --- a/webfiori/framework/router/Router.php +++ b/webfiori/framework/router/Router.php @@ -228,7 +228,7 @@ private function __construct() { public static function addRoute(array $options) : bool { $options['type'] = Router::CUSTOMIZED; - return Router::get()->addRouteHelper1($options); + return Router::getInstance()->addRouteHelper1($options); } /** * Adds new route to a web services set.