From d0b824963bd79fc436b4b312e49b48081860d8d4 Mon Sep 17 00:00:00 2001 From: Simon Schmidt Date: Mon, 21 Jun 2021 09:55:03 +0200 Subject: [PATCH] add webtest.cmd for python testing of webserver --- include/http/index.html | 2 +- include/webtest.cmd | 2 ++ src/main.cpp | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 include/webtest.cmd diff --git a/include/http/index.html b/include/http/index.html index 9bec15e..39f8553 100644 --- a/include/http/index.html +++ b/include/http/index.html @@ -4,7 +4,7 @@ My test page - +

Mozilla is cool

diff --git a/include/webtest.cmd b/include/webtest.cmd new file mode 100644 index 0000000..a5f46f7 --- /dev/null +++ b/include/webtest.cmd @@ -0,0 +1,2 @@ +CD .\include\http +py.exe -m http.server \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 26a2de5..032fe38 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -81,9 +81,8 @@ void setup_webserver() { Serial.print("IP address: "); Serial.println(WiFi.localIP()); - //server.on("/", handleRoot); server.on("/", handleRootGz); - server.on("/styles/style.css", handleCssGz); + server.on("/style.css", handleCssGz); server.onNotFound(handleNotFound); server.begin();