new project structure

This commit is contained in:
xinatorus
2020-04-20 21:49:30 +02:00
parent dec5a9083a
commit 74c6426500
9 changed files with 151 additions and 2 deletions

9
app/Routes.php Normal file
View File

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