File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ class Files extends \Tatter\Files\Config\Files
1919 */
2020 public $ storagePath = WRITEPATH . 'files/ ' ;
2121
22+ /**
23+ * Whether to include routes to the Files Controller.
24+ *
25+ * @var boolean
26+ */
27+ public $ routeFiles = true ;
28+
2229 /**
2330 * Layouts to use for general access and for administration
2431 *
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ class Files extends BaseConfig
1111 */
1212 public $ storagePath = WRITEPATH . 'files/ ' ;
1313
14+ /**
15+ * Whether to include routes to the Files Controller.
16+ *
17+ * @var boolean
18+ */
19+ public $ routeFiles = true ;
20+
1421 /**
1522 * Layouts to use for general access and for administration
1623 *
Original file line number Diff line number Diff line change 11<?php
22
3+ if (empty (config ('Files ' )->routeFiles ))
4+ {
5+ return ;
6+ }
7+
38// Routes to Files controller
49$ routes ->group ('files ' , ['namespace ' => '\Tatter\Files\Controllers ' ], function ($ routes )
510{
You can’t perform that action at this time.
0 commit comments