flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.64k stars 407 forks source link

PUT request nor working #417

Closed jesusgm closed 4 years ago

jesusgm commented 4 years ago

I have a route for GET and POST working perfectly but when i create a PUT route, it not work's.

This works

Flight::route('GET /states/@id', function($id){

This not works

Flight::route('PUT /states/@id', function($id){

It has no sense for me. I have the code in a free php hosting with PHP 7.2 ¿Can the version be the cause of this problem?

jesusgm commented 4 years ago

Work perfectly. I upload the code to a 000webhost hosting free account and they have blocked PUT and DELETE request