I'm in the process of building a web server interface (in C) to setup the WiFi interface (using ESP32 HW) based on the https://github.com/mongoose-os-apps/wifi-setup-web example code. When the user has completed configuration the WiFi the unit reboots and connects (as a WiFi terminal) to the new WiFi network.
After connection to the WiFi network I wish to switch the index.html file to present a different web interface (allow user to interact with the device). I can use the C function mgos_vfs_rename to switch the index.html file but this is rather a clunky way of achieving this. I looked at using mgos_http_server_set_document_root but as the file system is flat (no folders I believe) this is of little use.
Does anyone have suggestions as to the best way to switch the web/http interface to a different index.html file ?