From 7ca7efdbf434907cdabe0ee0ea04db9ddfaf0fe2 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 6 Apr 2022 21:59:55 +0300 Subject: [PATCH] feat(routes): add ability to add project routes --- src/flextype/routes/routes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/flextype/routes/routes.php b/src/flextype/routes/routes.php index e4ce4cce..a6f4ce41 100644 --- a/src/flextype/routes/routes.php +++ b/src/flextype/routes/routes.php @@ -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'; +} \ No newline at end of file