We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d7f348 commit ed70343Copy full SHA for ed70343
php/index.php
@@ -2,12 +2,13 @@
2
3
require __DIR__ . '/vendor/autoload.php';
4
5
-# Set up the route handlers.
+// Set up the route handlers.
6
use App\Route\Metrics;
7
use App\Route\Headers;
8
9
// Basic routing
10
-switch ($_SERVER['REQUEST_URI']) {
+$uri_components = parse_url($_SERVER['REQUEST_URI']);
11
+switch ($uri_components['path']) {
12
case '/metrics':
13
return Metrics::render();
14
case '/headers':
0 commit comments