Found lazy way to create api

This commit is contained in:
Ibnu Maksum
2024-03-31 21:23:19 +07:00
parent 4bf6f9c0ac
commit ee73621c85
5 changed files with 50 additions and 31 deletions

View File

@ -59,9 +59,6 @@ switch ($action) {
}
$log .= "DONE : $plan[username], $plan[namebp], $plan[type], $plan[routers]<br>";
}
if ($isApi) {
showResult(true, $log);
}
r2(U . 'plan/list', 's', $log);
case 'list':
$ui->assign('xfooter', '<script type="text/javascript" src="ui/lib/c/plan.js"></script>');
@ -75,9 +72,6 @@ switch ($action) {
$d = Paginator::findMany($query);
}
run_hook('view_list_billing'); #HOOK
if ($isApi) {
showResult(true, $action, $d, ['search' => $search]);
}
$ui->assign('d', $d);
$ui->assign('search', $search);
$ui->display('plan.tpl');