mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 14:16:46 +02:00
feat(routes): add ability to add project routes
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
// Add endpoints routes
|
||||
require_once __DIR__ . '/endpoints/utils.php';
|
||||
require_once __DIR__ . '/endpoints/entries.php';
|
||||
require_once __DIR__ . '/endpoints/registry.php';
|
||||
|
||||
// Add project routes
|
||||
if (filesystem()->file(PATH['project'] . '/routes/routes.php')->exists()) {
|
||||
require_once PATH['project'] . '/routes/routes.php';
|
||||
}
|
Reference in New Issue
Block a user