bkeevil / esp32-cam

A webcam firmware for ESP32 based camera modules
149 stars 43 forks source link

Making the firmware more conform to the REST architectural style #18

Open karlitos opened 4 years ago

karlitos commented 4 years ago

I couldn't help but notice, that all requests to the ESP board are done with GET requests using query parameters. This is ok for fetching settings or requesting the stream, but any request which actually updates settings on the camera should be in my opinion a least POST or PUT request.

Is there any reason - e.g. saving resources/firmware size - not to use POST/PUT ?

bkeevil commented 4 years ago

That code was inherited from the original ESP-WHO app. I took a look and the http server library does support POST and PUT requests. Should be a fairly easy fix.