Getting the request type for a Controller Route::register()
Permalink 1 user found helpful
Hello all,
I need to declare a route for each type of request (GET, POST, PUT, DELETE) in the file /application/bootstrap/app.php
Something like:
Does anyone can help me with this?
Thank you.
I need to declare a route for each type of request (GET, POST, PUT, DELETE) in the file /application/bootstrap/app.php
Something like:
<? //One route for GET, one for POST, one for PUT and one for DELETE Route::register( '/animal/{favorite}', 'Application\Controller\Animal::setFavorite' );
Does anyone can help me with this?
Thank you.
I come with the answer:
Just change the /application/bootstrap/app.php Route::register for:
OR