Code refactoring for #1939
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user