add settings page, better navigation

This commit is contained in:
2026-02-13 23:10:08 -08:00
parent 5c5b295961
commit b3c2446add
4 changed files with 214 additions and 64 deletions

View File

@@ -80,6 +80,7 @@ func Start() {
r.Post("/import/spotify", importSpotifyHandler)
r.Get("/import/lastfm/progress", importLastFMProgressHandler)
r.Get("/import/spotify/progress", importSpotifyProgressHandler)
r.Get("/settings", settingsPageHandler())
fmt.Printf("WebUI starting on %s\n", addr)
prot := http.NewCrossOriginProtection()
http.ListenAndServe(addr, prot.Handler(r))