Code refactoring for #1939

This commit is contained in:
Alex X
2025-11-16 19:01:06 +03:00
parent e2b63a4f6c
commit 0bae158e41
4 changed files with 10 additions and 47 deletions
+1 -7
View File
@@ -178,11 +178,5 @@ func apiPreload(w http.ResponseWriter, r *http.Request) {
}
func apiSchemes(w http.ResponseWriter, r *http.Request) {
if r.Method != "GET" {
http.Error(w, "", http.StatusMethodNotAllowed)
return
}
schemes := GetSupportedSchemes()
api.ResponseJSON(w, schemes)
api.ResponseJSON(w, SupportedSchemes())
}