10 lines
142 B
PHP
10 lines
142 B
PHP
<?php
|
|
|
|
$router = new Router();
|
|
|
|
$router->setDefault(function(){
|
|
echo '404';
|
|
});
|
|
|
|
$router->run($_SERVER['REQUEST_METHOD'], '/'.$_GET['url']);
|