Welcome Guest, Not a member yet? Register   Sign In
Add filters to routing.
#5

(This post was last modified: 09-23-2019, 04:28 AM by br_salviano.)

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.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB