i have a rest api, based on symfony 2.3. It works nice on debug mode but if i switch to prod env, i always get a 501 response error with this message "This method may not be used." on DELETE Http request (get works fine).
I check the configuration, got:
config.yml:
http_method_override => true
Here is my routing:
test_delete:
path: /categories
defaults: { _controller: OMGAPIBundle:GET\GetCategory:deleteTest }
requirements:
_method: DELETE
And my controller:
public function deleteTestAction(){
return new Response(1);
}