forked from GNUsocial/gnu-social
[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:
13
src/Routes/Main.php
Normal file
13
src/Routes/Main.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user