diff --git a/app/run.sh b/app/run.sh index b272e0d..10d4cff 100755 --- a/app/run.sh +++ b/app/run.sh @@ -37,6 +37,7 @@ cp -r /app/src/ /var/www/tmp/ chmod +x /app/dockcheck.sh chmod +x /app/watcher.sh cp /var/www/tmp/src/index.php /var/www/html/index.php +cp /var/www/tmp/src/api.php /var/www/html/api.php cp /var/www/tmp/src/style.css /var/www/html/style.css touch /var/www/html/update.txt chown www-data:www-data /var/www/html/* diff --git a/app/src/api.php b/app/src/api.php new file mode 100644 index 0000000..c5b5d03 --- /dev/null +++ b/app/src/api.php @@ -0,0 +1,37 @@ + $latest, 'updates' => $updates, 'errors' => $errors ); + + echo json_encode($api_response); +?> \ No newline at end of file diff --git a/app/src/index.php b/app/src/index.php index 15e7084..3a65220 100644 --- a/app/src/index.php +++ b/app/src/index.php @@ -151,5 +151,9 @@ function bg() +