Add filters to routing. |
How can I apply a filter to specific route?
I'm trying something like this: $routes->get('api/category', 'CategoryApi::read'); $routes->post('api/category', 'CategoryApi::create', ['filter' => 'auth']); But the filter is being applied in both routes. |
Messages In This Thread |
Add filters to routing. - by HTLove - 11-01-2018, 02:43 AM
RE: Add filters to routing. - by puschie - 11-05-2018, 12:37 AM
RE: Add filters to routing. - by HTLove - 11-06-2018, 03:11 AM
RE: Add filters to routing. - by ciadmin - 03-06-2019, 11:55 AM
RE: Add filters to routing. - by br_salviano - 09-23-2019, 04:24 AM
RE: Add filters to routing. - by kilishan - 09-23-2019, 06:59 AM
|