setup check

This commit is contained in:
RundelhausCode 2021-03-26 09:29:00 +01:00
parent c66867dced
commit 029fc35225
1 changed files with 11 additions and 0 deletions

11
Backend/CheckSetup.php Normal file
View File

@ -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]);
}