- Add source maps and license files for compiled assets - Add debug and test files for development - Complete Git repository with all necessary files for MoneyFlix project
30 lines
870 B
PHP
30 lines
870 B
PHP
<?php
|
|
require_once 'vendor/autoload.php';
|
|
|
|
use App\Core\Router;
|
|
|
|
// Load routes manually
|
|
require_once 'Routes/web.php';
|
|
|
|
$router = Router::getInstance();
|
|
|
|
echo "Routes loaded: " . count($router->getRoutes()) . PHP_EOL;
|
|
|
|
foreach($router->getRoutes() as $route) {
|
|
if(isset($route['path']) && strpos($route['path'], 'roles') !== false) {
|
|
echo "Found roles route: " . $route['path'] . " -> " . $route['handler'][0] . "::" . $route['handler'][1] . PHP_EOL;
|
|
}
|
|
}
|
|
|
|
echo "All API routes:\n";
|
|
foreach($router->getRoutes() as $route) {
|
|
if(isset($route['path']) && strpos($route['path'], '/api/') === 0) {
|
|
echo "- " . $route['path'] . " -> " . $route['handler'][0] . "::" . $route['handler'][1] . PHP_EOL;
|
|
}
|
|
}
|
|
|
|
echo "All routes structure:\n";
|
|
foreach($router->getRoutes() as $i => $route) {
|
|
echo "Route $i: " . print_r($route, true) . PHP_EOL;
|
|
}
|