setup check
This commit is contained in:
parent
c66867dced
commit
029fc35225
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
header("Access-Control-Allow-Methods: GET");
|
||||
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept");
|
||||
header('Content-Type: application/json;charset=UTF-8');
|
||||
if(!file_exists('../config/database.json')){
|
||||
echo json_encode(['data' => false]);
|
||||
}elseif(0 === filesize('../config/database.json')){
|
||||
echo json_encode(['data' => false]);
|
||||
}else{
|
||||
echo json_encode(['data' => true]);
|
||||
}
|
Loading…
Reference in New Issue