[CORE][ROUTES] Implemented custom router, with an interface similar to the old one, which allows routes to be seperated into files

This commit is contained in:
Hugo Sales
2020-03-21 18:53:25 +00:00
committed by Hugo Sales
parent e92a0227a1
commit 5d1685b142
4 changed files with 136 additions and 7 deletions

13
src/Routes/Main.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
namespace App\Routes;
use App\Util\RouteLoader;
abstract class Main
{
public static function load(RouteLoader $r): void
{
$r->connect('main_all', '/main/all', \App\Controller\NetworkPublic::class);
}
}