PHP_SMART_HOME_V3/app/Routes.php
2020-04-20 21:49:30 +02:00

10 lines
142 B
PHP

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