handle static images in ciphers

put in static folder
This commit is contained in:
2025-10-09 19:55:07 +02:00
parent a897d5943b
commit 9f207a0f5c
2 changed files with 4 additions and 1 deletions

View File

@@ -346,6 +346,9 @@ func main() {
http.HandleFunc("/admin/positions", AdminPositionsHandler)
http.HandleFunc("/admin/qr", AdminQRHandler)
// static files
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
fmt.Println("Server started at :8080")
http.ListenAndServe(":8080", nil)
}