PHP_SMART_HOME_V3/app/Routes.php

10 lines
142 B
PHP
Raw Normal View History

2020-04-20 19:49:30 +00:00
<?php
$router = new Router();
$router->setDefault(function(){
echo '404';
});
$router->run($_SERVER['REQUEST_METHOD'], '/'.$_GET['url']);