change schedule to settings with new default interval

This commit is contained in:
Adrian Zürcher
2026-01-21 09:03:53 +01:00
parent 66c6d9a3fb
commit d1f1ad563b
6 changed files with 191 additions and 86 deletions

View File

@@ -50,8 +50,8 @@ func main() {
r.HandleFunc("/ws", handlers.Websocket)
r.HandleFunc("/upload", handlers.UploadHandler).Methods("POST")
r.HandleFunc("/settings", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, staticFolder+"settings.html") })
r.HandleFunc("/api/save-schedule", handlers.SaveSchedule).Methods("POST")
r.HandleFunc("/api/get-schedule", handlers.GetSchedule).Methods("GET")
r.HandleFunc("/api/save-settings", handlers.SaveSettings).Methods("POST")
r.HandleFunc("/api/get-settings", handlers.GetSettings).Methods("GET")
r.HandleFunc("/api/delete", handlers.DeleteHandler).Methods("POST")
r.HandleFunc("/manage", func(w http.ResponseWriter, r *http.Request) {