cotestatnt / esp-fs-webserver

ESP32/ESP8266 webserver, WiFi manager and web editor Arduino library
MIT License
120 stars 29 forks source link

default site #1

Closed trombose009 closed 2 years ago

trombose009 commented 2 years ago

Hi, is there a way to set the default website to something else than /edit? For example to /index.html?

cotestatnt commented 2 years ago

Hi @trombose009 The default page handled on root address is /setup only if /index.htm is not present in filesystem. Once you have uploaded the file, it will be opened on root address (or with the complete filename offcourse), but it search only for .htm extension and not with .html But you are right, should be opened also if file is index.html, thanks for your notice. I will add the handler for the next release!

cotestatnt commented 2 years ago

Check this commit if you want fix code yourself:

https://github.com/cotestatnt/esp-fs-webserver/commit/3b8522586ef5c5197163ed17ac10dc4cf056351e

trombose009 commented 2 years ago

Thank you!