Need help understanding the docs on RESTFul? |
(08-24-2020, 02:34 PM)blaasvaer Wrote: I'm trying to get my head around the RESTFul part of the docs. But is confused as to where the individual parts go ... There are ways to group routes - https://codeigniter4.github.io/userguide/incoming/routing.html#grouping-routes My own restful API back-end is getting bigger and bigger. Now about 10 controllers with 20+ models and entities. To handle this route-wise, I am using groups like this so I don't have to configure the filter etc for each route entry. PHP Code: $routes->group('config', ['except' => ['new', 'edit'], 'filter' => 'bearer-auth:conf'], function ($routes) { |
Messages In This Thread |
Need help understanding the docs on RESTFul? - by blaasvaer - 08-24-2020, 02:34 PM
RE: Need help understanding the docs on RESTFul? - by tgix - 08-25-2020, 01:22 AM
RE: Need help understanding the docs on RESTFul? - by blaasvaer - 08-25-2020, 01:46 AM
|