Merge pull request #1939 from edenhaus/supportedSchemas

Add api endpoint to return supported schemas
This commit is contained in:
Alex X
2025-11-16 19:04:24 +03:00
committed by GitHub
4 changed files with 86 additions and 0 deletions
+4
View File
@@ -176,3 +176,7 @@ func apiPreload(w http.ResponseWriter, r *http.Request) {
http.Error(w, "", http.StatusMethodNotAllowed)
}
}
func apiSchemes(w http.ResponseWriter, r *http.Request) {
api.ResponseJSON(w, SupportedSchemes())
}