From 41bb343f5c5997d98e07d03a6af89b4c5aabb9be Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Wed, 28 May 2025 09:05:53 +0200 Subject: [PATCH] d --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index e142a10..fa0187b 100644 --- a/main.go +++ b/main.go @@ -109,14 +109,14 @@ func main() { } }).Methods("GET") - // Static file server for public files - must be the last route defined - fs := http.FileServer(http.Dir(".")) - r.PathPrefix("/").Handler(fs) - // Public route for evidence-aut.html r.HandleFunc("/evidence-aut", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "evidence-aut.html") }).Methods("GET") + + // Static file server for public files - must be the last route defined + fs := http.FileServer(http.Dir(".")) + r.PathPrefix("/").Handler(fs) r.HandleFunc("/kontakt", func(w http.ResponseWriter, r *http.Request) { // Check if kontakt service is already running