Game-Jaming/Backend/CheckSetup.php

12 lines
415 B
PHP
Raw Permalink Normal View History

2021-03-26 08:29:00 +00:00
<?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]);
}