From 5161874cf289189755789437344d252a93da0329 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 1 Apr 2024 13:48:58 +0700 Subject: [PATCH] $ui->display will show json for api --- system/api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/api.php b/system/api.php index d51c619f..751c9d12 100644 --- a/system/api.php +++ b/system/api.php @@ -25,6 +25,8 @@ $ui = new class($key) var $assign = []; function display($key) { + global $req; + showResult(true, $req, $this->getAll()); } function assign($key, $value) {