Welcome Guest, Not a member yet? Register   Sign In
Apply filter for all functions inside a controller
#1

(This post was last modified: 08-17-2020, 07:30 AM by eleumas.)

Hi! I created a filter for auth but i would like apply this filter for all methods inside the controller.

This is my routes:
PHP Code:
$routes->get('articles''Articles',['filter' => 'auth']);
$routes->get('articles/(:any)''Articles',['filter' => 'auth']); 

Is possible do it with a unique route? Someone can help me please? Thanks.
Reply


Messages In This Thread
Apply filter for all functions inside a controller - by eleumas - 08-17-2020, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB