You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
326 B
PHP
14 lines
326 B
PHP
<?php
|
|
use NN\CookieHandler as Cookie;
|
|
use NN\Module\DB;
|
|
|
|
$route->add('/api/local/data/acc', function(){
|
|
$q = DB::query_result_object("SELECT * FROM acc ORDER BY kode ASC");
|
|
Cookie::setCookie( "pacc", $q);
|
|
echo json_encode([
|
|
"status"=>200,
|
|
"dataStatus"=>"update"
|
|
]);
|
|
})
|
|
->use('module/db.php')
|
|
; |