Welcome Guest, Not a member yet? Register   Sign In
trailing slash misdirects resource controller
#1

when specifying a resource route according to the user guide:
PHP Code:
$routes->resource('photos'); 
the create() controller method is correctly called when POSTing data to /photos, however when a trailing slash is added /photos/ the index() controller method is called instead


adding a route like
PHP Code:
$routes->post('users/''Users::create');
$routes->resource('users'); 
before the resource route doesn't help
Reply


Messages In This Thread
trailing slash misdirects resource controller - by lukmim - 07-20-2021, 06:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB