fix: use single Preferences handler with method check instead of dead POST route

This commit is contained in:
ashisgreat22 2026-03-22 13:57:32 +01:00
parent 70818558cd
commit 0afcf509c3
2 changed files with 7 additions and 14 deletions

View file

@ -85,7 +85,6 @@ func main() {
mux.HandleFunc("/search", h.Search)
mux.HandleFunc("/autocompleter", h.Autocompleter)
mux.HandleFunc("/preferences", h.Preferences)
mux.HandleFunc("POST /preferences", h.PreferencesPOST)
mux.HandleFunc("/opensearch.xml", h.OpenSearch(cfg.Server.BaseURL))
// Serve embedded static files (CSS, JS, images).