Refactor web assets structure; migrate HTML, CSS, and JS to new directory and update Dockerfile for new paths

This commit is contained in:
2025-06-15 01:07:02 +02:00
parent 12a313eea4
commit 373eb6d324
5 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -90,9 +90,7 @@ func main() {
router := http.NewServeMux()
router.HandleFunc("/api/profiles", state.profilesHandler)
router.HandleFunc("/api/history", state.historyHandler)
router.HandleFunc("/", serveStatic("index.html", "text/html"))
router.HandleFunc("/style.css", serveStatic("style.css", "text/css"))
router.HandleFunc("/script.js", serveStatic("script.js", "application/javascript"))
router.Handle("/", http.FileServer(http.Dir("web")))
server := &http.Server{
Addr: config.ServerPort,