1
0
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:
Awilum
2022-04-06 21:59:55 +03:00
parent 8fd72f9f83
commit 7ca7efdbf4

View File

@@ -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';
}