Новые роуты API для статистики и мониторинга

- /api/version
- /api/health
- /api/stats
This commit is contained in:
2025-11-01 00:58:25 +08:00
parent c75da39b87
commit b5d3b60356
4 changed files with 162 additions and 84 deletions

View File

@@ -67,6 +67,24 @@ return [
'handler' => [ApiController::class, 'makeQrCode'],
'name' => 'api::makeQrCode',
],
[
'method' => 'GET',
'path' => '/api/version',
'handler' => [ApiController::class, 'version'],
'name' => 'api::version',
],
[
'method' => 'GET',
'path' => '/api/health',
'handler' => [ApiController::class, 'health'],
'name' => 'api::health',
],
[
'method' => 'GET',
'path' => '/api/stats',
'handler' => [ApiController::class, 'stats'],
'name' => 'api::stats',
],
/*
|--------------------------------------------------------------------------