Add PURGE of RESTful paths for a single resource |
Hi everyone,
To quickly create a handful of RESTful paths for a single resource with the resource () method, I needed to implement the purge method to delete all deleted records. I would like this method to be implemented. I share the changes I made to the "system\router\RouteCollection.php" file below I hope it is useful to someone. I'm very sorry if I'm wrong to post here. ADD into public function resource * // Generates the following routes: * HTTP Verb | Path | Action | Used for... * ----------+-------------+---------------+----------------- * PURGE /photos/ purge purge all deleted photos Code: //======================= ADDED after public function delete Code: /** RouteCollection.php (Size: 35.41 KB / Downloads: 59) Codeigniter 4 - Docker Image [github] [docker hub]
|
Messages In This Thread |
Add PURGE of RESTful paths for a single resource - by atsanna - 01-09-2019, 11:46 AM
RE: Add PURGE of RESTful paths for a single resource - by ciadmin - 01-09-2019, 12:14 PM
RE: Add PURGE of RESTful paths for a single resource - by atsanna - 01-09-2019, 12:31 PM
RE: Add PURGE of RESTful paths for a single resource - by orionstar - 01-09-2019, 12:31 PM
|