ingeniasoftware / luthier-ci

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework
https://luthier.ingenia.me/ci/en/
MIT License
151 stars 39 forks source link

Load resource on routes.php if not exist #40

Open afsaneGhafouri opened 5 years ago

afsaneGhafouri commented 5 years ago

Hi guys

I need to have the default behavior of CodeIgniter which is load resource if not even defined in routes. I already know one of the rules of using this package is that we could not achieve URLs which are not defined in the web.php. I'm wondering if there's a possibility to load routes from web.php and if there's no match, instead of throwing 404 read from routes.php or switch to the default behavior of framework?

Ihabafia commented 5 years ago

You can do that by the _remap.