Phase 2.2

This commit is contained in:
Gogs
2026-07-07 13:54:34 +02:00
parent 32d81f601a
commit a3acacf177
4 changed files with 45 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
require_once '/var/www/src/bootstrap.php';
$versionFile = '/var/www/cache/guide.version';
ApiResponse::json([
'ok' => true,
'version' => file_exists($versionFile)
? trim(file_get_contents($versionFile))
: '0',
]);