Welcome Guest, Not a member yet? Register   Sign In
Do I need to set all my routes in Routes.php?
#3

(08-10-2019, 06:46 AM)includebeer Wrote: If you don’t want to configure all your routes, you can still use “auto-route” like in CI3: https://codeigniter4.github.io/userguide...outes-only

PHP Code:
$routes->setAutoRoute(true); 

OK. In CI3 I used chriskacerguis/codeigniter-restserver to handle GET, POST etc.
I guess auto routing will work with GET and I can setup only POST, OPTIONS etc for the special cases?
Reply


Messages In This Thread
RE: Do I need to set all my routes in Routes.php? - by tgix - 08-10-2019, 09:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB