- 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
22 lines
489 B
PHP
22 lines
489 B
PHP
<?php
|
|
require_once 'vendor/autoload.php';
|
|
|
|
use App\Core\Router;
|
|
|
|
$router = Router::getInstance();
|
|
require_once 'Routes/web.php';
|
|
|
|
echo "Testing dispatch for /api/users/roles:\n";
|
|
try {
|
|
$router->dispatch('/api/users/roles', 'GET');
|
|
} catch (Exception $e) {
|
|
echo "Error: " . $e->getMessage() . "\n";
|
|
}
|
|
|
|
echo "\nTesting dispatch for /api/admin/users:\n";
|
|
try {
|
|
$router->dispatch('/api/admin/users', 'GET');
|
|
} catch (Exception $e) {
|
|
echo "Error: " . $e->getMessage() . "\n";
|
|
}
|