Hi guys,
I am using microdot as the web server on ESP32, according example gpio.html: href="https://stackpath.bootstrapcdn.com/boot ... ap.min.css" , i downloaed the css file to local, and change the code to :
href="bootstrap.min.css" , after running got error message:
GET bootstrap.min.css 404
Microdot cann't read local css files
Re: Microdot cann't read local css files
The example doesn't have any code in it to respond to anything other than "/" (where it returns gpio.html for a GET, and handles the form for a POST). You'll need to add a handler for "/bootstrap.min.css" that uses send_file to return the CSS.
-
- Posts: 4
- Joined: Tue Nov 03, 2020 3:18 am
Re: Microdot cann't read local css files
Thank you very much , it worked 
