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.