27 lines
452 B
PHP
Executable File
27 lines
452 B
PHP
Executable File
<?php
|
|
|
|
require_once __DIR__.'/../../include/php/const';
|
|
|
|
function api_fetch(){
|
|
|
|
/* [1] Fetch & generate useful data from features
|
|
=========================================================*/
|
|
/* (1) Default data : access */
|
|
$data = [
|
|
'access' => file_get_contents(DATA_DIR.'/access.dat'),
|
|
'feature' => []
|
|
];
|
|
|
|
/* (2) Fetch for each feature which generates data */
|
|
|
|
|
|
|
|
return json_encode(['a'=>1]);
|
|
}
|
|
|
|
echo api_fetch();
|
|
|
|
|
|
|
|
?>
|