summaryrefslogtreecommitdiff
path: root/src/Middleware/LegacyMiddleware.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-12-18 02:23:44 +0100
committermsquare <msquare@notrademark.de>2018-12-19 22:36:42 +0100
commitc5621b82cfeddee23b81871a53035fde747f73a9 (patch)
tree36e91622ac463011bd2b45f552d837a1abfb56ba /src/Middleware/LegacyMiddleware.php
parent3c8d0eeb440b8c263686ba81df7be87290ad9695 (diff)
Implemented /metrics endpoint and reimplemented /stats
closes #418 (/metrics endpoint) Usage: ```yaml scrape_configs: - job_name: 'engelsystem' static_configs: - targets: ['engelsystem.example.com:80'] ```
Diffstat (limited to 'src/Middleware/LegacyMiddleware.php')
-rw-r--r--src/Middleware/LegacyMiddleware.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Middleware/LegacyMiddleware.php b/src/Middleware/LegacyMiddleware.php
index b1315fda..8524764f 100644
--- a/src/Middleware/LegacyMiddleware.php
+++ b/src/Middleware/LegacyMiddleware.php
@@ -26,7 +26,6 @@ class LegacyMiddleware implements MiddlewareInterface
'shift_entries',
'shifts',
'shifts_json_export',
- 'stats',
'users',
'user_driver_licenses',
'user_password_recovery',
@@ -122,10 +121,6 @@ class LegacyMiddleware implements MiddlewareInterface
case 'shifts_json_export':
require_once realpath(__DIR__ . '/../../includes/controller/shifts_controller.php');
shifts_json_export_controller();
- /** @noinspection PhpMissingBreakStatementInspection */
- case 'stats':
- require_once realpath(__DIR__ . '/../../includes/pages/guest_stats.php');
- guest_stats();
case 'user_password_recovery':
require_once realpath(__DIR__ . '/../../includes/controller/users_controller.php');
$title = user_password_recovery_title();