]> _ Git - cubist_cms-back.git/commitdiff
wip #5834 @0.25 | Allows to define custom routes for a project
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 12 Apr 2023 15:56:23 +0000 (17:56 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 12 Apr 2023 15:56:23 +0000 (17:56 +0200)
src/resources/cubistmagic/routes.stub

index b6008f635b9c56d57f2c882c98e34c3e751303c3..85d8cf70d62987a87b3b6ec85bc6dbf9c1958604 100644 (file)
@@ -5,4 +5,8 @@ Route::group([
     'namespace'  => 'App\Http\Controllers\Admin',
 ], function () { // custom admin routes
     _CUSTOM_
+
+    if (file_exists(__DIR__ . '/projectcustom.php')) {
+        require_once __DIR__ . '/projectcustom.php';
+    }
 });