04-02-2020, 07:16 AM
Hi,
Is it possible to load routes from a specific file?
For instance, I have:
Module
- Config
- BackedRoutes.php
- FrontRoutes.php
(...)
or something like that and I would like to load `FrontendRoutes` only for frontend app and `BackedRoutes` for the admin app. Otherwise, if I have one file `Routes` then after added it to front and backend app I can visit all routes - and it is something what I want to eliminate.
The same problem I will have with `Events` file.
Did anyone have an idea how I can resolve that problem?
Thanks all
Is it possible to load routes from a specific file?
For instance, I have:
Module
- Config
- BackedRoutes.php
- FrontRoutes.php
(...)
or something like that and I would like to load `FrontendRoutes` only for frontend app and `BackedRoutes` for the admin app. Otherwise, if I have one file `Routes` then after added it to front and backend app I can visit all routes - and it is something what I want to eliminate.
The same problem I will have with `Events` file.
Did anyone have an idea how I can resolve that problem?
Thanks all
