Merge pull request #40 from qvalentin/feature/annotations

annotations support
This commit is contained in:
Achraf RRAMI
2024-01-19 19:33:11 +00:00
committed by GitHub
4 changed files with 172 additions and 5 deletions

View File

@ -29,6 +29,7 @@ func main() {
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { render("home", w, nil) })
r.HandleFunc("/search", searchHandler).Methods("GET")
r.HandleFunc("/{id}-lyrics", lyricsHandler)
r.HandleFunc("/{id}/{artist-song}/{verse}/annotations", annotationsHandler)
r.HandleFunc("/images/{filename}.{ext}", proxyHandler)
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
r.HandleFunc("/albums/{artist}/{albumName}", albumHandler)